package.json - add build and deploy scripts
bin/deploy wraps the rsync command.
This commit is contained in:
8
bin/deploy
Executable file
8
bin/deploy
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -vx
|
||||||
|
rsync -avzc \
|
||||||
|
--delete \
|
||||||
|
-C \
|
||||||
|
_site/ \
|
||||||
|
-- \
|
||||||
|
"$1"
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "rm -rf _site && eleventy --pathprefix '~nick/whenwe/'",
|
||||||
|
"deploy": "bin/deploy nick@mixian.noodlefactory.co.uk:public_html/whenwe/",
|
||||||
"server": "eleventy --serve",
|
"server": "eleventy --serve",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user