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

Function convertToJS

lib/models/blueprint.js:520–528  ·  view source on GitHub ↗

@private @method convertToJS @param {FileInfo} fileInfo @return {Promise}

(fileInfo)

Source from the content-addressed store, hash-verified

518 @return {Promise}
519 */
520 async convertToJS(fileInfo) {
521 let rendered = await fileInfo.render();
522
523 fileInfo.rendered = await this.removeTypes(path.extname(fileInfo.displayPath), rendered);
524 fileInfo.displayPath = replaceTypeScriptExtension(fileInfo.displayPath);
525 fileInfo.outputPath = replaceTypeScriptExtension(fileInfo.outputPath);
526
527 return fileInfo;
528 },
529
530 /**
531 @private

Callers

nothing calls this directly

Calls 2

renderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…