Finished working on playground and added a CI/CD step

This commit is contained in:
Leon Mika 2024-04-26 10:31:41 +10:00
parent fdc480262d
commit 1d7a076f63
8 changed files with 91 additions and 23 deletions

14
Makefile Normal file
View file

@ -0,0 +1,14 @@
clean:
-rm -r build
test:
go test ./cmdlang/...
site: clean
mkdir build
mkdir build/site
cp -r _site/* build/site/.
GOOS=js GOARCH=wasm go build -o build/site/playwasm.wasm ./cmd/playwasm/.
site-deploy: site
netlify deploy --dir build/site --prod