summary refs log tree commit diff
path: root/bundle/src
diff options
context:
space:
mode:
authorThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-06 18:20:22 +0200
committerThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-06 18:20:22 +0200
commit72af8dc71987fa41bd35c3949238ebf863159817 (patch)
treec3a4b1eac79ef2240bc7700fdbcca1c57ee0ba56 /bundle/src
parent:arrow_up: update packages (diff)
downloadserver-72af8dc71987fa41bd35c3949238ebf863159817.tar.xz
Compiler test
Diffstat (limited to 'bundle/src')
-rw-r--r--bundle/src/build.js18
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