mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-06 21:24:06 -04:00
reorganized project
This commit is contained in:
parent
34b20ec1fe
commit
c57a95b7b5
29 changed files with 34 additions and 43 deletions
|
|
@ -29,7 +29,7 @@ const result = sass.compile(String(new URL("style/style.scss", ROOT).pathname),
|
|||
await Deno.writeTextFile(new URL("style.css", DIST), result.css);
|
||||
|
||||
console.log("Compiling wasm lib...");
|
||||
await run(["wasm-pack", "build", "--target", "web", "--release", "--out-dir", "wasm"], "");
|
||||
await run(["wasm-pack", "build", "--target", "web", "--release", "--out-dir", "../web/wasm"], "../web_lib");
|
||||
await Deno.copyFile(new URL("automata_web_bg.wasm", WASM), new URL("automata_web_bg.wasm", DIST));
|
||||
|
||||
console.log("Compiling bundle...");
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ await startServer();
|
|||
|
||||
console.log("👀 watching for changes…");
|
||||
|
||||
const watcher = Deno.watchFs(["root", "src"]);
|
||||
const watcher = Deno.watchFs(["root", "../automata", "../web_lib"]);
|
||||
for await (const event of watcher) {
|
||||
if (
|
||||
event.kind === "modify" ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue