A basic React app to start a new project.
- React
- TypeScript
- styled-components
- Storybook
- Prettier for code formatting
- ESLint for linting
- Webpack for bundling
- Jest and React Testing Library for testing
- Clone/download repo
npm install
| Command | Description |
|---|---|
npm start |
Build app in development mode and serve at http://localhost:8080 |
npm run build |
Build app to dist/ in production mode |
npm run build:analyze |
Build app to dist/ in production mode and run Webpack Bundle Analyzer server |
npm test |
Run Jest |
npm run test:watch |
Run Jest in watch mode |
npm run lint |
Run ESLint |
npm run lint:fix |
Run ESLint and automatically fix problems |
npm run format |
Format files with Prettier |
npm run format:check |
Check formatting of files with Prettier but don't format anything |
npm run typecheck |
Check for TypeScript errors without emitting output |
npm run storybook |
Build Storybook in development mode and serve at http://localhost:9000 |
npm run build:storybook |
Build Storybook to storybook-static/ in production mode |