fast build script

This commit is contained in:
Flam3rboy
2021-10-07 18:21:01 +02:00
parent 72af8dc719
commit 9bfee45811
2 changed files with 37 additions and 18 deletions
-18
View File
@@ -1,18 +0,0 @@
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}`});
});