use (pre)compile/(pre)deploy hooks of node
This commit is contained in:
parent
b386f83348
commit
0db998df18
|
@ -13,8 +13,11 @@
|
|||
},
|
||||
"scripts": {
|
||||
"precommit": "node hooks/precommit.js",
|
||||
"postdeploy": "node hooks/postdeploy.js",
|
||||
"search": "echo 'executing Hugo+Pagefind (locally)...' && hugo && /usr/local/bin/pagefind --source docs --bundle-dir ../static/_pagefind && hugo serve"
|
||||
|
||||
"compile": "hugo --cleanDestinationDir --destination docs",
|
||||
"predeploy": "/usr/local/bin/pagefind --source docs",
|
||||
"deploy": "rsync --archive --delete docs/ /var/www/redzuurdesem/",
|
||||
"postdeploy": "node hooks/postdeploy.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in New Issue