fix
This commit is contained in:
parent
88b99fa86b
commit
faf7792a09
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 |
|
|
@ -1,8 +1,5 @@
|
||||||
export const files = [
|
export const files = [
|
||||||
"favicon.ico",
|
"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/postiats/postiats.js",
|
||||||
"monaco/min/vs/basic-languages/scheme/scheme.js",
|
"monaco/min/vs/basic-languages/scheme/scheme.js",
|
||||||
"monaco/min/vs/basic-languages/sb/sb.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.es.js",
|
||||||
"monaco/min/vs/editor/editor.main.nls.js",
|
"monaco/min/vs/editor/editor.main.nls.js",
|
||||||
"monaco/min/vs/editor/editor.main.nls.fr.js",
|
"monaco/min/vs/editor/editor.main.nls.fr.js",
|
||||||
"monaco/min/vs/loader.js",
|
"monaco/min/vs/loader.js"
|
||||||
"img/empty.png",
|
|
||||||
"img/logo-white.png",
|
|
||||||
"img/logo.png"
|
|
||||||
]
|
]
|
||||||
|
|
@ -109,15 +109,13 @@ if (build_all) {
|
||||||
dir.path(`app/static`),
|
dir.path(`app/static`),
|
||||||
];
|
];
|
||||||
|
|
||||||
const parcel = spawn({
|
let build_static =
|
||||||
cmd: args,
|
process.argv[process.argv.length - 1] === "public" ? false : true;
|
||||||
cwd: dir.path("app/web"),
|
|
||||||
stdio: ["ignore", "inherit", "inherit"],
|
|
||||||
});
|
|
||||||
await parcel.exited;
|
|
||||||
|
|
||||||
// const public_br = dir.path("app/web/public-br");
|
if (!build_static) {
|
||||||
// await removeAsync(public_br);
|
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 api = new fdir().withRelativePaths().crawl(dir.path("app/web/public"));
|
||||||
const public_files = api.sync();
|
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");
|
const static_br = dir.path("app/static-br");
|
||||||
await removeAsync(static_br);
|
await removeAsync(static_br);
|
||||||
const static_files = await listAsync(dir.path("app/static"));
|
const static_files = await listAsync(dir.path("app/static"));
|
||||||
|
|
@ -180,3 +186,4 @@ if (build_all) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue