add makefile
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -4,4 +4,6 @@ node_modules
|
|||||||
dist
|
dist
|
||||||
# Temporary files
|
# Temporary files
|
||||||
.cache
|
.cache
|
||||||
.idea
|
.idea
|
||||||
|
# Secrets
|
||||||
|
makefile
|
||||||
8
makefile
Normal file
8
makefile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
deploy:
|
||||||
|
@set -e
|
||||||
|
@echo "Cleaning /dist directory..."
|
||||||
|
@rm -rf ./dist
|
||||||
|
@echo "Building..."
|
||||||
|
@npm run build
|
||||||
|
@echo "Deploying to Uberspace..."
|
||||||
|
@scp -r ./dist/* tengo@tuttle.uberspace.de:/home/tengo/html
|
||||||
@@ -8,8 +8,7 @@
|
|||||||
"start": "parcel --public-url / index.pug --open",
|
"start": "parcel --public-url / index.pug --open",
|
||||||
"build": "parcel build index.pug",
|
"build": "parcel build index.pug",
|
||||||
"format": "npx prettier --write src/**/*.{ts,pug} index.pug package.json",
|
"format": "npx prettier --write src/**/*.{ts,pug} index.pug package.json",
|
||||||
"scp": "scp -r ./dist/* tengo@tuttle.uberspace.de:/home/tengo/html",
|
"deploy": "make deploy"
|
||||||
"deploy": "rm -rf ./dist && npm run build && npm run scp"
|
|
||||||
},
|
},
|
||||||
"author": "Michael Werner Czechowski <mail@dailysh.it>",
|
"author": "Michael Werner Czechowski <mail@dailysh.it>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user