npm install -g gatsby-cli && npm install gh-pages --save-dev
# create new gatsby project
gatsby new test-project
# start dev
cd test-project/
gatsby develop
{
"scripts": {
"deploy": "gatsby build && gh-pages -d public -b master"
},
"homepage": "https://loag.github.io/gatsby-github-pages/"
}
npm run deploy