mirror of
https://github.com/Luzifer/past3.git
synced 2024-12-23 04:41:17 +00:00
16 lines
341 B
Makefile
16 lines
341 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 babel -d public app.js && 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
|