2023-01-13 14:41:29 +00:00
|
|
|
import { bundle, esbuild } from "./build_web.ts";
|
2023-01-08 11:24:12 +00:00
|
|
|
import * as flags from "https://deno.land/std@0.165.0/flags/mod.ts";
|
|
|
|
import { copy } from "https://deno.land/std@0.165.0/fs/copy.ts";
|
|
|
|
|
|
|
|
if (import.meta.main) {
|
|
|
|
const args = flags.parse(Deno.args, {
|
|
|
|
boolean: ["watch"],
|
|
|
|
alias: { w: "watch" },
|
|
|
|
default: {
|
|
|
|
watch: false,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
await bundle(args.watch, "mobile", "mobile/dist");
|
|
|
|
if (!args.watch) {
|
|
|
|
esbuild.stop();
|
|
|
|
}
|
|
|
|
}
|