1
0
Fork 0
mirror of https://github.com/Luzifer/past3.git synced 2024-12-22 20:31:16 +00:00
past3/Makefile
Knut Ahlers 6f0a3d068d
Use babel to minify and transpile
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-24 13:00:18 +02:00

16 lines
359 B
Makefile

default: generate
generate: script index-page
script: public
docker run --rm -ti -v $(CURDIR):$(CURDIR) -w $(CURDIR) node:alpine \
sh -exc "npm ci && npx coffee -t -c -o public/app.js app.coffee && chown -R $(shell id -u) public && rm -rf node_modules"
index-page: public
./generate.py > public/index.html
public:
mkdir public
clean:
rm -rf public