add makefile
This commit is contained in:
parent
6dd9ad5449
commit
8e0d0fbdf0
|
@ -4,4 +4,6 @@ node_modules
|
|||
dist
|
||||
# Temporary files
|
||||
.cache
|
||||
.idea
|
||||
.idea
|
||||
# Secrets
|
||||
makefile
|
|
@ -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",
|
||||
"build": "parcel build index.pug",
|
||||
"format": "npx prettier --write src/**/*.{ts,pug} index.pug package.json",
|
||||
"scp": "scp -r ./dist/* tengo@tuttle.uberspace.de:/home/tengo/html",
|
||||
"deploy": "rm -rf ./dist && npm run build && npm run scp"
|
||||
"deploy": "make deploy"
|
||||
},
|
||||
"author": "Michael Werner Czechowski <mail@dailysh.it>",
|
||||
"license": "Apache-2.0",
|
||||
|
|
Loading…
Reference in New Issue