Skip to content

A template for a simple Gatsby site using our preferred tools and conventions.

Notifications You must be signed in to change notification settings

friendsoftheweb/ftw-gatsby-template

Repository files navigation

FTW Gatsby Template

This is a template for setting up a Gatsby site using our current, preferred toolkit, configurations, and conventions for:

It includes some other scripts and basic components following our conventions, and not the unused boilerplate in the standard Gatsby starter.

Copy this repository and delete this section to setup a new project.

FTW Gatsby Template

A project built with Gatsby, a static site generator using React.

If you have any problems setting up or running the project, please file an issue.

Prerequisites

Setup

In the project directory, install dependencies with:

$ yarn install

Development Server

Run the development server with:

$ yarn start

View the site in a browser at localhost:8000

Validating Javascript

A few tools are used to enhance and validate JavaScript. It's recommended to install plugins for these in your text editor, if available, to validate and format on save.

  • Typescript is used to type-check JavaScript. Run $ yarn types:check to check manually.
  • Prettier formats JavaScript and CSS, enforcing consistency and reducing incidental changes. Run $ yarn format to manually format.
  • ESLint checks for some kinds of JavaScript errors. Run $ yarn lint to manually check.

Troubleshooting

Sometimes the app gets into a broken state that does not provide meaningful errors. This happens especially when changing the structure of data or files names. In this case try:

  • Restarting the development server
  • Check the console running $ yarn start for errors
  • Run $ yarn clean to remove cache and build folders and restart

Updating Dependencies

After pulling changes, update all installed dependencies to the locked versions with:

$ yarn install

About

A template for a simple Gatsby site using our preferred tools and conventions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published