Skip to content

Commit

Permalink
WIP: Remove everything except Workers from engine Build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjeetsuhag committed Oct 26, 2022
1 parent 1c8fe72 commit 87b405f
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1003,23 +1003,9 @@ export const buildEngine = async (options) => {
// Create index.js
await createIndexJs("engine");

// Generate bundle for CSS and ThirdParty using esbuild.
await bundleCSS({
filePaths: [
...workspaceCssFiles["engine"],
"packages/engine/Source/ThirdParty/google-earth-dbroot-parser.js",
],
outbase: "packages/engine/Source",
outdir: "packages/engine/Build",
});

// Build workers.
await bundleWorkers({
input: [
"packages/engine/Source/Workers/**",
"packages/engine/Source/ThirdParty/Workers/**",
"!packages/engine/Source/ThirdParty/Workers/package.json",
],
input: ["packages/engine/Source/Workers/**"],
inputES6: ["packages/engine/Source/WorkersES6/*.js"],
path: "packages/engine/Build",
});
Expand All @@ -1037,15 +1023,6 @@ export const buildEngine = async (options) => {
write: write,
});

// Copy static assets to Build folder.
await copyFiles(
[
"packages/engine/Source/ThirdParty/**/*.wasm",
"packages/engine/Source/ThirdParty/**/*.json",
],
"packages/engine/Build/ThirdParty"
);

return;
};

Expand Down

0 comments on commit 87b405f

Please sign in to comment.