Note: This starter uses the Gatsby v2.
- css-in-js with Emotion: website - plugin doc
- TypeScript: plugin doc
- Storybook : website
- React-Helmet: plugin doc
- Sharp image processing library: plugin doc
- Sitemap: plugin doc
- Robots.txt : plugin doc
- Plop files generator : website
-
Node version manager
Install NVM to manage its version of Node:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
In the project, install and use the current version of Node:
# Installs the node version specified in the .nvmrc nvm install # Switches to the node version specified in the .nvmrc nvm use
(Optional but highly recommended) Install AVN to avoid having to run nvm use every time you open the project.
-
Install Yarn
Go to https://yvm.js.org/docs/overview
curl -fsSL https://raw.githubusercontent.com/tophat/yvm/master/scripts/install.sh | bash
-
Download dependencies
yarn install
-
Start developing
Navigate into your new site’s directory and start it up.
yarn develop
Your site is now running at
http://localhost:8000
!_Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial._ -
Start Storybook
yarn storybook
-
Build
yarn build
-
Build storybook
yarn build-storybook
-
Serve Build
yarn serve
-
Create new file
yarn new
-
Format files with Prettier
yarn format