commit 7047060c32cbc460ca1e70d81b38e8447a01e464
parent 8aa94fce3c8130f8dda8cdc03d98eb4275732cc8
Author: tongong <tongong@gmx.net>
Date: Sat, 26 Feb 2022 13:18:58 +0100
deploy script for github pages
Diffstat:
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -0,0 +1,16 @@
+dev:
+ npx parcel src/index.html
+
+build:
+ npx parcel build src/index.html
+
+# abuse of git but whatever i just want github pages
+# unstaged changes on master will be lost
+deploy: build
+ git checkout --orphan gh-pages
+ git --work-tree dist add --all
+ git --work-tree dist commit -m gh-pages
+ git push origin HEAD:gh-pages --force
+ rm -r dist
+ git checkout -f master
+ git branch -D gh-pages
diff --git a/package.json b/package.json
@@ -2,10 +2,6 @@
"dependencies": {
"mithril": "^2.0.4"
},
- "scripts": {
- "dev": "parcel src/index.html",
- "build": "parcel build src/index.html"
- },
"devDependencies": {
"parcel": "^2.0.0-rc.0"
}