Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Latest commit

 

History

History
113 lines (70 loc) · 2.05 KB

scripts.md

File metadata and controls

113 lines (70 loc) · 2.05 KB

Scripts

Starting

App

yarn start

This will start your development server using gatsby. There is also yarn develop because this is the default gatsby one and so it makes sense to keep it.

  yarn dev:clean

This scripts cleans your .cache folder and then runs yarn start. If you are getting weird gastby errors it is sometimes caused by a stale .cache folder and this script should fix it.

Storybook

  yarn storybook

This will run storybook so you can see our shared components.

yarn storybook:static

This command will build a static version of our storybook instance to storybook-static/.

Lambda

  yarn start:lambda

We also have one lambda function that goes to meetup and gets our latest meetups to put them in contentful and if need to make any changes this is the script to run.

See here for details on how these are used.

Tests

We have two types of tests in place.

Snapshots

yarn test:snapshots

This will run all the tests inside our storybook instance that covers some of our shared components.

Testcafe

yarn test:e2e

Testcafe is our end-to-end web testing tool; we use it to make sure that the website work the way it is supposed to.

yarn test

This will run all test:** scripts

Lint

Eslint

yarn lint

This will run eslint on all our project files.

Prettier

yarn format

This will run prettier on all our files to assure code consistency.

Build

App

yarn build:app

This command will build gatsby and the website.

Lambda

yarn build:lambda

This command will build our lambdas using the netlify-lambda package.

See Netlify automated deployments for details on how the lambdas are used.

yarn build

This will run all our build:** scripts.

Any questions feel free to create an issue :)