Tools (client-side only, no backend):
Install node v18 or higher,
npm v8 or higher, and
yarn v1.
⚠️ Note thatnpmis included in most distributions ofnode.
💡 If your distribution does not come with the correct
nodeversion, one solution is to installnvmand then runnvm useinside the repository clone for every new shell.
# Install dependencies and setup git hooks
yarn# Served at http://localhost:8000
yarn devMore info: https://www.gatsbyjs.com/docs/reference/gatsby-cli/#develop
More info:
yarn cu --helpor https://github.com/raineorshine/npm-check-updates
yarn cuyarn upThen run yarn to update yarn.lock and local node_modules. Commit both
changes to package.json and yarn.lock. If you want to start fresh, remove
yarn.lock and node_modules, then run yarn.
yarn buildMore info: https://www.gatsbyjs.com/docs/reference/gatsby-cli/#build
# Served at http://localhost:9000
yarn serveMore info: https://www.gatsbyjs.com/docs/reference/gatsby-cli/#serve
yarn cleanMore info: https://www.gatsbyjs.com/docs/reference/gatsby-cli/#clean
More info:
yarn lint --helpor https://github.com/xojs/xo
yarn lint# NOTE This is run automatically on commit.
yarn lint-and-fixMore info:
yarn tc --helpor https://www.typescriptlang.org/docs
# NOTE This is run automatically on commit.
yarn tcyarn tc:watch