peterkhayes / paras-goodbye

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peter Hayes's React project template

This project was bootstrapped with Create React App, and then extended with other capabilites I like to have when developing React apps.

Scripts

  • yarn: installs dependencies
  • yarn start: starts the development server
  • yarn test: starts the test runner
  • yarn storybook: starts the storybook component library
  • yarn build: builds the app for deployment

CSS

This project uses Tailwind CSS for styling. I followed this guide to make Tailwind work with Create React App.

Storybook

I added Storybook to create a gallery of my components. In a production app, I might also add visual regression testing on top of Storybook, but this generally requires a CI system to work well.

Linting and formatting

Several formatting steps are performed by VSCode. This is faster and generally works better than eslint-based formatting. However, this means that VSCode is implicitly required to develop using this repo. I would at some point like to find a solution that works in other editors and on CI.

The following formatters are run on save:

I also added some custom ESLint configuration on top of the default Create React App config:

About


Languages

Language:TypeScript 80.8%Language:HTML 8.6%Language:JavaScript 8.5%Language:CSS 2.1%