Simple, convenient, out of the box, using vite's react template
-
Clone this repo, like
git clone https://github.com/xyhxx/vite-react-proste.git
. In addition, you can click "Use this template" to copy this template to your repositories -
Install all dependencies
pnpm install
-
Build under development mode
pnpm dev
-
Build under production mode
pnpm build
-
Preview web page
pnpm preview
-
Unit test or integration test
pnpm test
-
Other scripts can be viewed in package.json
typescript is used in the project, and all dependencies that need to install @types/xxx have been added
✅ Zustand
✅ react-route-dom
✅ TypeScript
✅ Axios
✅ Vitest
✅ Testing Library
✅ react-query
✅ react-error-boundary
✅ ESLint
✅ Prettier
✅ Stylelint
✅ PostCSS
✅ Cypress
Alias folders are exported using index
✅ folder(pages, routes, apis, assets, hooks, components, stores, styles, utils)
✅ alias(@pages, @routes, @apis...)
✅ eslint config(use eslint-config-proste)
✅ stylelint config
✅ editor config
MIT License
Copyright (c) 2022 xyhxx
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.