mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-10 04:15:30 +00:00
⚡ fast build script
This commit is contained in:
@@ -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}`});
|
||||
});
|
||||
Reference in New Issue
Block a user