diff options
author | The Arcane Brony <myrainbowdash949@gmail.com> | 2021-10-06 18:20:22 +0200 |
---|---|---|
committer | The Arcane Brony <myrainbowdash949@gmail.com> | 2021-10-06 18:20:22 +0200 |
commit | 72af8dc71987fa41bd35c3949238ebf863159817 (patch) | |
tree | c3a4b1eac79ef2240bc7700fdbcca1c57ee0ba56 /bundle/src | |
parent | :arrow_up: update packages (diff) | |
download | server-72af8dc71987fa41bd35c3949238ebf863159817.tar.xz |
Compiler test
Diffstat (limited to 'bundle/src')
-rw-r--r-- | bundle/src/build.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bundle/src/build.js b/bundle/src/build.js new file mode 100644 index 00000000..b893d5ee --- /dev/null +++ b/bundle/src/build.js @@ -0,0 +1,18 @@ +const { exec, spawn } = require("child_process"); +const { exitCode } = require("process"); + +let parts = "api,cdn,gateway,util,bundle".split(","); +parts.forEach(element => { + // exec(`npm --prefix ../${element} run build`, (error, stdout, stderr) => { + // if (error) { + // console.log(`error: ${error.message}`); + // return; + // } + // if (stderr) { + // console.log(`stderr: ${stderr}`); + // return; + // } + // console.log(`stdout: ${stdout}`); + // }); + spawn("npm", ["run", "build"], {cwd: `../${element}`}); +}); \ No newline at end of file |