-
Clone the forked repository like so:
git clone https://github.com/<your username>/oscafrica.org.git && cd oscafrica.org
- Read the Contributors Guide
- Install the Gatsby CLI
npm install -g gatsby-cli
- Change directories into site folder
cd oscafrica.org
- Create and checkout to a new branch for your feature
git checkout -b gallery-component
- Start development server
npm run dev
Gatsby will start a hot-reloading development environment accessible by default at localhost:8000
- Create a production build
npm run build
Gatsby will perform an optimized production build, generating static HTML and per-route JavaScript code bundles.
- Serve the production build locally
npm run serve
Gatsby starts a local HTML server for testing the built site. Remember to build the site using gatsby build before using this command.
- Run Storybook
npm run storybook
Storybook will start a hot-reloading development environment accessible on a random open port
- Make Git commits
npm run commit
We use the commitizen command line utility, you'll be prompted to fill out any required commit fields at commit time. You would not need to run git commit
again.
- See what ESLint and Prettier can fix
npm run analyze
- Run Prettier and ESLint with the --fix option
npm run fix