This is a quite opinionated Gatsby starter based on Gatsby's default starter. It features:
- Gatsby Configuration with Typescript using native Typescript support
- GraphQL type generation using Gatsbys built-in type generation
- Styling with Emotion using gatsby-plugin-emotion and themes.
- Internationalization using gatsby-plugin-i18n-l10n and i18n-ally.
- VSCode Development Container configuration using Remote Containers allowing a quick start into development.
- Github Actions for automatic deployment to Github Pages.
- ESLint and Prettier configuration helping to write nice, homogeneous code.
When I used Gatsby for the first time, it wasn't difficult to getting started. What puzzled me is how to structure and organize the project with all it's components and other bits neatly. The main reason I've created this starter, to provide an example how to structure a Gatsby website.
- Use Gatsbys CLI
gatsby new my-new-fancy-website https://github.com/openscript-ch/gatsby-starter-dogmatism
or clickUse this template
on the repository page to get a copy. - Open the new project with Visual Studio Code and Remote Containers.
- Install the projects dependencies with
yarn install
. - Run the project with
yarn develop
. - Configure the Github repository to make automated deployment to Github Pages work:
- Got to
Settings
>Actions
>General
>Workflow permissions
and activateRead and write permissions
.
- Got to
-
siteMetadata.title
: Set the websites title
-
Environment variables:
PATH_PREFIX
: Adds a prefix to all paths. This is useful if you host this project on a subpath likehttps://example.github.io/gatsby-starter-dogmatism
.