- vite + typescript + swr
- vitest
- sass
- prettier
git clone [email protected]:monaye/vite-vitest-react-ts-starter.git
npm install
npm run dev
npm i -D prettier & eslint-config-prettier
npm i -D vitest jsdom
npm i -D @testing-library/react @testing-library/jest-dom
npm i -D @vitest/ui @vitest/coverage-v8
npm i -D sass
This starter template added few useful commands. For all avaiable commands, please look at the package.json
.
Run prettier on whole project including root path.
By default prettier ignore file patterns describe in ./.gitignore
and ./.prettierignore
npm run format
By default vitest includes
['**/*.{test,spec}.?(c|m)[jt]s?(x)']
.
npm run test
npm run test:ui
npm run test:coverage