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

Function createSpecListForWorkspace

scripts/build.js:854–868  ·  view source on GitHub ↗

* Creates a single entry point file by importing all individual spec files. * @param {string[]} files The individual spec files. * @param {Workspace} workspace The workspace. * @param {string} outputPath The path the file is written to. * @returns {Promise }

(files, workspace, outputPath)

Source from the content-addressed store, hash-verified

852 * @returns {Promise<string>}
853 */
854async function createSpecListForWorkspace(files, workspace, outputPath) {
855 let contents = "";
856 files.forEach(function (file) {
857 contents += `import './${filePathToModuleId(file).replace(
858 `packages/${workspace}/Specs/`,
859 "",
860 )}.js';\n`;
861 });
862
863 await writeFile(outputPath, contents, {
864 encoding: "utf-8",
865 });
866
867 return contents;
868}
869
870/**
871 * Bundles CSS files.

Callers 2

buildEngineFunction · 0.85
buildWidgetsFunction · 0.85

Calls 1

filePathToModuleIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…