Skip to content

Vite template for React + TypeScript + Redux-toolkit / RTK Query.

License

Notifications You must be signed in to change notification settings

DandiRizkyy/vite-rtk-query

 
 

Repository files navigation

vite-rtk-query Typecheck Test Build Lint Depfu

Vite RTK Query temptelte.
This include React+TS with familiar pre-setup tooling
Redux Toolkit, RTK Query, eslint/prettier, Vitest/TS/react-testing-library/MSW, tailwindcss, GitHub Actions CI.

This is the official Vite template(npm init vite@latest myapp -- --template react-ts) and some extended setup.

All npm package are keeping least release version powered by Depfu.

Installation

npx degit laststance/vite-rtk-query myapp

npm

cd myapp
npm install
npm run validate
npm run dev

If you don't need TailwindCSS, run npm run remove:tailwind after npm install.

Commands

npm run dev             # start development server
npm run start           # start development server
npm run validate        # run test,lint,build,typecheck concurrently
npm run test            # run vitest
npm run test:watch      # run vitest watch mode
npm run lint            # run eslint
npm run lint:fix         # run eslint with --fix option
npm run typecheck       # run TypeScript compiler check
npm run build           # build production bundle to 'dist' directly
npm run prettier        # run prettier for json|yml|css|md|mdx files
npm run clean           # remove 'node_modules' 'yarn.lock' 'dist' completely
npm run serve           # launch server for production bundle in local
npm run remove:tailwind # remove TailwindCSS

License

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):


ryota-murakami

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Vite template for React + TypeScript + Redux-toolkit / RTK Query.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • TypeScript 58.1%
  • JavaScript 30.3%
  • CSS 6.8%
  • Shell 2.4%
  • HTML 2.4%