diff options
author | Joris | 2020-02-16 22:45:07 +0100 |
---|---|---|
committer | Joris | 2020-02-17 09:15:11 +0100 |
commit | 25afb0bde9b8a2c064135a534231c232a461b341 (patch) | |
tree | 5ab25640024238a2f6f2d176e5870178f18b5345 /Makefile | |
parent | 0366f8cd49d2db40ea5efc639f6a475ecd97675e (diff) |
Set up a first version of tabata timer
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6c9a2b3 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +export PATH := node_modules/.bin:$(PATH) + +build: public/main.js + +public/main.js: node_modules $(shell find src \( -type d -o \( -type f -a -regex ".*\.ml" \) \)) + @echo "Building $@" + @bsb -make-world + @rollup --config rollup.config.js + @terser $@ --output $@ --compress --mangle + +node_modules: package.json + @bsb -init init + @mv init/node_modules . + @rm -rf init + @npm install + @touch -c node_modules + +clean: + @echo "Cleaning" + @rm -f public/main.js + @rm -rf node_modules lib + @find src -name '*.bs.js' -exec rm {} \; |