Skip to content

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

License

Notifications You must be signed in to change notification settings

laststance/vite-rtk-query

Repository files navigation

vite-rtk-query Typecheck Test Build Lint

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

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

Installation

npx degit laststance/vite-rtk-query myapp

pnpm

cd myapp
pnpm install
pnpm validate
pnpm dev

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

Commands

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

License

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):

ryota-murakami
ryota-murakami

💻 📖 ⚠️
Jhon Jimenez
Jhon Jimenez

💻

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