Quickly create a react app using react18、react-router6、typescript5
- ⚛️ React 18 - The library for web and native user interfaces
- 🏄 React Router DOM - Declarative routing for React
- ⚡️ Vite - Next generation frontend tooling. It's fast! (For the time being only for the development environment)
- 🌈 Webpack - A bundler for javascript and friends.
- ⚓️ Typescript - A superset of JavaScript that compiles to clean JavaScript output
- 🔨 EsLint - Pluggable JavaScript linter
- 🌿 StyleLint - Pluggable CSS linter
- 🌀 Prettier - Opinionated Code Formatter
- ☄️ CommitLint - Lint commit messages
- ⚙️ Proxying API Requests in Development
$ git clone https://github.com/llaurora/react-app-starter.git
$ cd react-app-starter
$ pnpm install
$ pnpm run start
# or start with Vite
$ pnpm run vite
Script | Description |
---|---|
pnpm run start | Runs the app in the development mode with webpack |
pnpm run start:vite | Runs the app in the development mode with vite |
pnpm run build | Builds the app for production to the dist folder with webpack |
pnpm run eslint | find problems with JavaScript code in src directory |
pnpm run stylelint | find problems with CSS code in src directory |
pnpm run lint | find problems with JavaScript code and CSS code in src directory |
pnpm run eslint:fix | find and try to fix problems with JavaScript code in src directory |
pnpm run stylelint:fix | find and try to fix problems with CSS code in src directory |
pnpm run lint:fix | find and try to problems with JavaScript code and CSS code in src directory |
pnpm run prepare | husky install |