use (pre)compile/(pre)deploy hooks of node
This commit is contained in:
parent
eace4313b2
commit
b2e8c815c3
|
@ -8,8 +8,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/jefklakscodex/",
|
||||
"postdeploy": "node hooks/postdeploy.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in New Issue