This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
Lateinicus/frontend/Makefile

30 lines
776 B
Makefile
Raw Normal View History

2018-09-20 16:44:46 +00:00
node_modules:
npm install
.PHONY: watch
watch: node_modules
npm start
clean:
rm -rf dist/
2018-09-20 16:44:46 +00:00
.PHONY: build
build: prod
prod: node_modules clean
2018-09-20 16:44:46 +00:00
@echo Building with parcel
2018-09-28 21:33:28 +00:00
./node_modules/.bin/parcel build --out-dir dist/app src/index.html
./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html
sed -e "s/\/src/\/app\/src/g" --in-place dist/app/index.html
2018-09-20 16:44:46 +00:00
tar -czf lateinicus-web.tar.gz dist/
2018-09-20 16:50:15 +00:00
dev: node_modules clean
@echo Building with parcel
./node_modules/.bin/parcel build --out-dir dist/app src/index.html
./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html
sed -e "s/\/src/\/app\/src/g" --in-place dist/app/index.html
chmod 604 -R dist/app/*
chmod 604 dist/error.html dist/lost.html
chmod 705 dist dist/app