summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile4
-rw-r--r--site/index.html (renamed from index.html)0
-rw-r--r--site/main.css (renamed from main.css)0
-rw-r--r--site/main.mjs (renamed from main.mjs)2
5 files changed, 4 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 54954ce..ce39741 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
/target
-/pkg
+/site/wasm
diff --git a/Makefile b/Makefile
index f37f0ac..08d33b2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# the --target is currently necessary or firefox will return
# "disallowed mime type" -bjc 7-aug-2025
build:
- wasm-pack build --target web
+ wasm-pack build --target web --out-dir site/wasm
serve: build
- python -m http.server 8118
+ (cd site && python -m http.server 8118)
diff --git a/index.html b/site/index.html
index 77c2bdc..77c2bdc 100644
--- a/index.html
+++ b/site/index.html
diff --git a/main.css b/site/main.css
index 9f7381d..9f7381d 100644
--- a/main.css
+++ b/site/main.css
diff --git a/main.mjs b/site/main.mjs
index 9e3e037..3add1fe 100644
--- a/main.mjs
+++ b/site/main.mjs
@@ -1,4 +1,4 @@
-import init, { make_vm } from './pkg/automathon.js';
+import init, { make_vm } from './wasm/automathon.js';
function wordlistElts(wordlist) {
return wordlist.map((bc, i) => {