a node based script for adding or updating gh-pages from a specific distribution directory.
Usage: gh-pages-node [options] <dist directory> [gh-pages directory]
Options:
--update, -u updating already existing gh-pages (defaults to true if
gh-pages directory already exists) [boolean]
--message, -m custom commit message gh-pages
--help, -h Show help [boolean]
# clone the repo
git clone git@github.com:JamesNimlos/gh-pages-node.git
# simlink it to your bin
ln -s gh-pages-node/gh-pages-node /usr/local/bin/gh-pages-node
# navigate to your project with gh-pages to publish
cd ~/path/to/project
# run your buid script, probably:
npm run build
# use the tool
gh-pages-node dist gh-pages
Boom, you're killing it with some sweet gh-pages.