MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / buildFileInfo

Function buildFileInfo

lib/models/blueprint.js:803–815  ·  view source on GitHub ↗

@method buildFileInfo @param {Function} destPath @param {Object} templateVariables @param {String} file @param {Object} options may be used when buildFileInfo is customized in a blueprint @return {FileInfo | null}

(intoDir, templateVariables, file /*, options */)

Source from the content-addressed store, hash-verified

801 @return {FileInfo | null}
802 */
803 buildFileInfo(intoDir, templateVariables, file /*, options */) {
804 let mappedPath = this.mapFile(file, templateVariables);
805
806 return new FileInfo({
807 action: 'write',
808 outputBasePath: path.normalize(intoDir),
809 outputPath: path.join(intoDir, mappedPath),
810 displayPath: path.normalize(mappedPath),
811 inputPath: this.srcPath(file),
812 templateVariables,
813 ui: this.ui,
814 });
815 },
816
817 /**
818 @method isUpdate

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…