Makefile (399B)
1 dev: 2 npx parcel src/index.html 3 4 build: 5 rm -r dist 6 npx parcel build src/index.html 7 8 # abuse of git but whatever i just want github pages 9 # unstaged changes on master will be lost 10 deploy: build 11 git checkout --orphan gh-pages 12 git --work-tree dist add --all 13 git --work-tree dist commit -m gh-pages 14 git push origin HEAD:gh-pages --force 15 rm -r dist 16 git checkout -f master 17 git branch -D gh-pages