MCPcopy
hub / github.com/CesiumGS/cesium / createCombinedSpecList

Function createCombinedSpecList

scripts/build.js:373–391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371 * @returns {Promise<string>} contents
372 */
373export async function createCombinedSpecList() {
374 const version = await getVersion();
375 let contents = `export const VERSION = '${version}';\n`;
376
377 for (const workspace of Object.keys(workspaceSpecFiles)) {
378 const files = await globby(
379 workspaceSpecFiles[/** @type {Workspace} */ (workspace)],
380 );
381 for (const file of files) {
382 contents += `import '../${file}';\n`;
383 }
384 }
385
386 await writeFile(path.join("Specs", "SpecList.js"), contents, {
387 encoding: "utf-8",
388 });
389
390 return contents;
391}
392
393/**
394 * @param {object} options

Callers 3

gulpfile.jsFile · 0.90
server.jsFile · 0.90
buildCesiumFunction · 0.85

Calls 1

getVersionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…