Loag / gatsby-github-pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build

setup

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

update package json

{
  "scripts": {
    "deploy": "gatsby build && gh-pages -d public -b master"
  },
  "homepage": "https://loag.github.io/gatsby-github-pages/"
}

deployment

npm run deploy

About


Languages

Language:JavaScript 69.3%Language:CSS 23.5%Language:TypeScript 7.2%