An opinionated template/starting point was bootstrapped with Create React App and includes React Router, Storybook, Airbnb/ESLint/Prettier linting, prop-types, and classnames.
macOS
(Windows might work but is not actively tested)node
version 16 or higheryarn
version 1.22.x (ornpm
version 8) or higher
Reference package.json
for all scripts. Here are few commonly used scripts:
# Removes script generated files/folders.
yarn clean
# Run the custom linter.
yarn lint
# Run the custom linter automatically fix files.
yarn lint:fix
# Runs the test runner in the interactive watch mode.
yarn test
# Runs the test runner and collect coverage.
yarn test:coverage
# Runs the test runner and collect coverage on changed files.
yarn test:changed
# Runs the app in the development mode.
yarn start
# Run Storybook in development mode.
yarn storybook
# Builds the app for production.
yarn build
# Build Storybook for production.
yarn build-storybook
# Analyze production bundles.
yarn analyze