Gatsby 1.0 starter with styled-components, typescript, redux, and jest
# first time
npm install
# start a dev server
npm run develop
# build static site
npm run build
# run tests and watch
npm run test:watch
Extends gatsby-start-default with
Page routes have been changed to make it easier to include all related files in the same dir. A page route is now created only when a file ends in .page.tsx
. All other files not found at src/pages/*
or having the .page.tsx
extension are assumed not be page entries.
This convention allows pages to have a structure similar to below
about/
- components/
- button/
- index.tsx
- styles.tsx
- assets/
- check.svg
- index.page.tsx
- styles.tsx
- Use it in a real project