Skip to content

pipopotamasu/react-vite

Repository files navigation

react-vite

React app boilerplate based on vite.

Features

  • Vite with React, TypeScript and absolute path
  • Styled by Tailwind CSS v3
  • Use ESLint, Prettier
  • Test by Jest
  • Request mocking by msw for development environment
  • Setup github actoins(CI) which makes test, lint, type check run

Getting started

use degit to clone to your machine with an empty git history:

$ npx degit pipopotamasu/react-vite#main my-app
$ cd my-app
$ yarn install
$ yarn dev
=> http://localhost:3000

Development

$ yarn dev            # start dev server at http://localhost:3000
$ yarn test           # run test by jest
$ yarn eslint         # run eslint for ts files
$ yarn eslint:fix     # run eslint with autofix mode
$ yarn prettier:write # format files
$ yarn prettier:check # check if files are formatable
$ yarn fix            # run eslint with autofix mode and prettier

Production

$ yarn build    # build static files for production
$ yarn serve    # preview production built files

Credit

react-vite is built and maintained by pipopotamasu.

License

This project is licensed under the terms of the MIT license.

About

React app boilerplate based on vite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published