This is a React + TypeScript boilerplate built with Vite.
In the package.json
file, check release-it
, eslint
, stylelint
and prettier
configurations and change the values to match your project and your preferences.
-
Create the project.
npx degit nzambello/vite-react-template my-app
-
Access the project directory.
cd my-app
-
Initialize a git repository.
git init
-
Install dependencies.
yarn
-
Start dev server with hot reload at http://localhost:3000.
yarn dev
yarn lint
# or separately
yarn lint:js
yarn lint:css
yarn typecheck
yarn format
yarn build
Run the app in production mode at http://localhost:3000.
yarn preview
yarn storybook
- Run unit tests and watch
yarn test
- Run unit tests with coverage
yarn coverage
- Run e2e tests
yarn test:e2e
- Run e2e tests in debug mode
yarn test:e2e:debug
- Show e2e tests results
yarn playwright show-report
This project is licensed under the MIT License.
This project was heavily inspired by react-ts-vite-template.