- Make sure
node build
outputs some static files to_built
. npm run deploy
.
This eventually became this blog post and this module
node build
outputs some static files to _built
.npm run deploy
.This eventually became this blog post and this module
{ | |
"scripts": { | |
"build": "node build", | |
"commit-built": "git add _built -A && git commit -m \"_built files at `date`\" -n > /dev/null 2>&1; exit 0", | |
"ghpages": "git subtree split --prefix _built/ -b gh-pages && git push -f origin gh-pages:gh-pages && git branch -D gh-pages", | |
"deploy": "npm run build && npm run commit-built && npm run ghpages" | |
} | |
} |
This is so simple, thanks! I also wanted to give myself a reminder that all outstanding changes need to be committed (duh) so mine looks like this in a shell script: