This commit is contained in:
Rizky 2024-08-16 12:47:29 +07:00
parent 88b99fa86b
commit faf7792a09
8 changed files with 40 additions and 39 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -1,8 +1,5 @@
export const files = [
"favicon.ico",
"img/empty.png",
"img/logo-white.png",
"img/logo.png",
"monaco/min/vs/basic-languages/postiats/postiats.js",
"monaco/min/vs/basic-languages/scheme/scheme.js",
"monaco/min/vs/basic-languages/sb/sb.js",
@ -116,8 +113,5 @@ export const files = [
"monaco/min/vs/editor/editor.main.nls.es.js",
"monaco/min/vs/editor/editor.main.nls.js",
"monaco/min/vs/editor/editor.main.nls.fr.js",
"monaco/min/vs/loader.js",
"img/empty.png",
"img/logo-white.png",
"img/logo.png"
"monaco/min/vs/loader.js"
]

View File

@ -109,15 +109,13 @@ if (build_all) {
dir.path(`app/static`),
];
const parcel = spawn({
cmd: args,
cwd: dir.path("app/web"),
stdio: ["ignore", "inherit", "inherit"],
});
await parcel.exited;
let build_static =
process.argv[process.argv.length - 1] === "public" ? false : true;
// const public_br = dir.path("app/web/public-br");
// await removeAsync(public_br);
if (!build_static) {
const public_br = dir.path("app/web/public-br");
await removeAsync(public_br);
}
const api = new fdir().withRelativePaths().crawl(dir.path("app/web/public"));
const public_files = api.sync();
@ -153,6 +151,14 @@ if (build_all) {
);
}
if (build_static) {
const parcel = spawn({
cmd: args,
cwd: dir.path("app/web"),
stdio: ["ignore", "inherit", "inherit"],
});
await parcel.exited;
const static_br = dir.path("app/static-br");
await removeAsync(static_br);
const static_files = await listAsync(dir.path("app/static"));
@ -180,3 +186,4 @@ if (build_all) {
);
}
}
}