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

Method copyToOutputPath

lib/models/builder.js:99–116  ·  view source on GitHub ↗

* @private * @method copyToOutputPath * @param {String} inputPath

(inputPath)

Source from the content-addressed store, hash-verified

97 * @param {String} inputPath
98 */
99 copyToOutputPath(inputPath) {
100 let outputPath = this.outputPath;
101
102 fs.mkdirsSync(outputPath);
103
104 if (!this.canDeleteOutputPath(outputPath)) {
105 throw new SilentError(`Using a build destination path of \`${outputPath}\` is not supported.`);
106 }
107
108 let sync = this._sync;
109 if (sync === undefined) {
110 this._sync = sync = new Sync(inputPath, path.resolve(this.outputPath));
111 }
112
113 let changes = sync.sync();
114
115 return changes.map((op) => op[1]);
116 }
117
118 /**
119 * @private

Callers 2

buildMethod · 0.95
builder-test.jsFile · 0.80

Calls 1

canDeleteOutputPathMethod · 0.95

Tested by

no test coverage detected