Static content
- node
- npm
- gatsby-cli (npm install -g gatsby-cli)
- Prettier setup in your editor https://prettier.io/ (or you can run
npm run format
) - Stylelint setup in your editor https://stylelint.io/ (or you can run
npm run stylelint
) - Eslint setup in your editor https://eslint.org/ (or you can run
npm run eslint
)
-
Test
npm run test
-
Format
npm run format
-
Install your dependencies:
npm install
-
To start developing:
npm start
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
Basic name.github.io/champion-global/
Deploy to development gh-pages
npm run deploy-dev
Deploy to production
npm run deploy
note:
make sure you have CNAME before deploy to production.
add custom domain name to script/CNAME