use (pre)compile/(pre)deploy hooks of node

This commit is contained in:
Wouter Groeneveld 2022-11-12 10:23:34 +01:00
parent b386f83348
commit 0db998df18
1 changed files with 5 additions and 2 deletions

View File

@ -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",