This is a React boilerplate using Vite Builder.
- Vite
- React
- React-Router
- TypeScript
- Styled Components
- Vitest
- React Testing Library
- Storybook
- Eslint
- Prettier
- Husky
- Lint-Staged
- Plop
Make a copy:
npx degit adeonir/boilerplate-react-vite my-project
Enter the new created folder, initiate a git repository and install the dependencies:
cd my-project
git init
yarn install
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the page.
If you like to try the production build, run:
yarn build
And then:
yarn preview
dev: runs your application onlocalhost:3000build: creates the production build versionpreview: starts a simple server with the build production codetest: runs vitest in watch modetest:coverage: runs vitest returning coverage tabletest:ci: runs vitest once in CIlint: runs the linter in all components and pagesformat: runs prettier to format all components and pagestypecheck: runs the type checker in all components and pagesstorybook: runs storybook onlocalhost:6006storybook:build: create the build version of storybookgenerate: runs plop to generate component files
Made with