summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-08-24 15:46:22 -0400
committerBrian Cully <bjc@spork.org>2025-08-24 15:46:22 -0400
commit411f2735bffc42d11a3b1b3447bbb1603e48a3eb (patch)
tree9444596251baf8625522190a721d422adb69ce2e
parent0efb15a9eb706896cdabb9ca5d2b0c295c2dffcf (diff)
downloadautomathon-411f2735bffc42d11a3b1b3447bbb1603e48a3eb.tar.gz
automathon-411f2735bffc42d11a3b1b3447bbb1603e48a3eb.zip
move html stuff into ‘site’
-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) => {