diff options
author | developomp <developomp@gmail.com> | 2021-10-20 09:11:12 +0900 |
---|---|---|
committer | developomp <developomp@gmail.com> | 2021-10-20 09:11:12 +0900 |
commit | 53949bd7370d9865f2609f901071190be7d7021a (patch) | |
tree | 967fcaf89aaa89bf26201d98e53e90d57bbda6f6 /bundle/scripts/build.js | |
parent | Merge branch 'fosscord:master' into master (diff) | |
download | server-53949bd7370d9865f2609f901071190be7d7021a.tar.xz |
prettier formatted /bundle
Diffstat (limited to 'bundle/scripts/build.js')
-rw-r--r-- | bundle/scripts/build.js | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js index dbc305a9..ad00d47f 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -18,15 +18,24 @@ if (argv.includes("clean")) { }); } -fse.copySync(path.join(__dirname, "..", "..", "api", "assets"), path.join(__dirname, "..", "dist", "api", "assets")); +fse.copySync( + path.join(__dirname, "..", "..", "api", "assets"), + path.join(__dirname, "..", "dist", "api", "assets") +); fse.copySync( path.join(__dirname, "..", "..", "api", "client_test"), path.join(__dirname, "..", "dist", "api", "client_test") ); -fse.copySync(path.join(__dirname, "..", "..", "api", "locales"), path.join(__dirname, "..", "dist", "api", "locales")); +fse.copySync( + path.join(__dirname, "..", "..", "api", "locales"), + path.join(__dirname, "..", "dist", "api", "locales") +); dirs.forEach((a) => { fse.copySync("../" + a + "/src", "dist/" + a + "/src"); - if (verbose) console.log(`Copied ${"../" + a + "/dist"} -> ${"dist/" + a + "/src"}!`); + if (verbose) + console.log( + `Copied ${"../" + a + "/dist"} -> ${"dist/" + a + "/src"}!` + ); }); console.log("Copying src files done"); @@ -35,7 +44,14 @@ console.log("Compiling src files ..."); console.log( execSync( 'node "' + - path.join(__dirname, "..", "node_modules", "typescript", "lib", "tsc.js") + + path.join( + __dirname, + "..", + "node_modules", + "typescript", + "lib", + "tsc.js" + ) + '" -p "' + path.join(__dirname, "..") + '"', |