MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / getJson

Function getJson

lib/models/blueprint.js:1364–1387  ·  view source on GitHub ↗
(verbose)

Source from the content-addressed store, hash-verified

1362 },
1363
1364 getJson(verbose) {
1365 let json = {};
1366 this._printableProperties.forEach((key) => {
1367 let value = this[key];
1368 if (key === 'availableOptions') {
1369 value = cloneDeep(value);
1370 value.forEach((option) => {
1371 if (typeof option.type === 'function') {
1372 option.type = option.type.name;
1373 }
1374 });
1375 }
1376 json[key] = value;
1377 });
1378
1379 if (verbose) {
1380 let detailedHelp = this.printDetailedHelp(this.availableOptions);
1381 if (detailedHelp) {
1382 json.detailedHelp = detailedHelp;
1383 }
1384 }
1385
1386 return json;
1387 },
1388
1389 /**
1390 Used to retrieve a blueprint with the given name.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…