-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (38 loc) · 902 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# build and watch
watch:
test -e node_modules || npm i
node build.js watch
# build without watching
build:
test -e node_modules || npm i
node build.js
# build npm library
build-lib:
test -e node_modules || npm i
npm run build-lib
# run typechecker
check:
npx tsc --watch
serve:
cd public && python3 -m http.server
# deploy to github pages
deploy:
git push origin "main:deploy"
test:
npm run test-watch
# publish to npm
publish:
git push origin "main:publish"
# publish to npm, called by ci
ci-publish:
make build-lib
mv README.npm-lib.md README.md
npm run test
npm publish
wasm: public/assets/twelf.wasm
public/assets/twelf.wasm: docker/Dockerfile
docker build -t twelf-wasm-builder docker
docker create --name tempcont "twelf-wasm-builder:latest"
docker cp "tempcont:/build/twelf/bin/twelf.wasm" public/assets/twelf.wasm
touch public/assets/twelf.wasm
docker rm tempcont