Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adeonir/boilerplate-react-vite
A React boilerplate powered by Vite, React-Router, Typescript, VItest, Testing-Library, Styled-Components and Storybook
https://github.com/adeonir/boilerplate-react-vite
react react-router storybook styled-components testing-library typescript vite vitest
Last synced: 18 days ago
JSON representation
A React boilerplate powered by Vite, React-Router, Typescript, VItest, Testing-Library, Styled-Components and Storybook
- Host: GitHub
- URL: https://github.com/adeonir/boilerplate-react-vite
- Owner: adeonir
- Created: 2022-04-16T23:25:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-12T12:27:43.000Z (over 1 year ago)
- Last Synced: 2023-05-12T13:33:43.166Z (over 1 year ago)
- Topics: react, react-router, storybook, styled-components, testing-library, typescript, vite, vitest
- Language: TypeScript
- Homepage: https://boilerplate-react-vite.vercel.app/
- Size: 891 KB
- Stars: 24
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boilerplate: Vite + React
---
This is a [React](https://reactjs.org/) boilerplate using [Vite Builder](https://vitejs.dev/).
## What is inside?
- [Vite](https://vitejs.dev/)
- [React](https://reactjs.org/)
- [React-Router](https://reactrouter.com/)
- [TypeScript](https://typescriptlang.org/)
- [Styled Components](https://styled-components.com/)
- [Vitest](https://vitest.dev/)
- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)
- [Storybook](https://storybook.js.org/)
- [Eslint](https://eslint.org/)
- [Prettier](https://prettier.io/)
- [Husky](https://github.com/typicode/husky)
- [Lint-Staged](https://github.com/okonet/lint-staged)
- [Plop](https://plopjs.com/)## Getting Started
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
```### Development
Run the development server:
```
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the page.
### Production
If you like to try the production build, run:
```
yarn build
```And then:
```
yarn preview
```## Commands
- `dev`: runs your application on `localhost:3000`
- `build`: creates the production build version
- `preview`: starts a simple server with the build production code
- `test`: runs vitest in watch mode
- `test:coverage`: runs vitest returning coverage table
- `test:ci`: runs vitest once in CI
- `lint`: runs the linter in all components and pages
- `format`: runs prettier to format all components and pages
- `typecheck`: runs the type checker in all components and pages
- `storybook`: runs storybook on `localhost:6006`
- `storybook:build`: create the build version of storybook
- `generate`: runs plop to generate component files---
Made with ♥️ by Adeonir Kohl