My opinionated Gatsby.js starter template.
It starts from the default Gatsby starter, and adds:
- TypeScript & Gatsby types
- Eslint & Prettier
- Bugsnag
- Styled Components
src
import alias
- Node v10+
- Yarn
- Gatsby CLI
gatsby new [name] https://github.com/antoinerousseau/gatsby-starter-antoine
cd [name]
cp {example,}.env
And configure your site infos in package.json
and src/gatsby/config.ts
.
yarn develop
: start development modeyarn lint
: check linting (Eslint + Prettier)yarn build
: make production bundleyarn serve
: locally serve production bundle
If you use Netlify, you can also directly have a TypeScript-ready setup, including Netlify functions (lambdas), by using the netlify branch, e.g.:
gatsby new [name] https://github.com/antoinerousseau/gatsby-starter-antoine#netlify