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

Method findFiles

lib/models/asset-size-printer.js:75–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 findFiles() {
76 let outputPath = this.outputPath;
77
78 try {
79 return walkSync(outputPath, {
80 directories: false,
81 })
82 .filter((x) => x.endsWith('.css') || x.endsWith('.js'))
83 .map((x) => path.join(outputPath, x));
84 } catch (e) {
85 if (e !== null && typeof e === 'object' && e.code === 'ENOENT') {
86 throw new Error(`No asset files found in the path provided: ${outputPath}`);
87 } else {
88 throw e;
89 }
90 }
91 }
92};

Callers 1

makeAssetSizesObjectMethod · 0.95

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected