Mantine Vite template
Features
This template comes with the following features:
- PostCSS with mantine-postcss-preset
- TypeScript
- Storybook
- Vitest setup with React Testing Library
- Vite+ unified toolchain: Vite, Vitest, Oxlint and Oxfmt are run with
vpand configured invite.config.mjs
Vite+ CLI
The template works without any global installation: vp is installed as a dev dependency and all npm scripts use it.
Optionally, you can install the global vp CLI.
It automatically switches to the Node.js version pinned in .node-version and lets you run commands directly, for example vp dev or vp check --fix instead of yarn vp check --fix.
npm scripts
Build and dev scripts
dev– start development serverbuild– build production version of the appbuild:analyze– build the app and open bundle size visualization (dist/stats.html)preview– locally preview production build
Testing scripts
check– checks formatting, lint rules and TypeScript types withvp checkcheck:fix– same ascheck, fixes formatting and auto-fixable lint errorstypecheck– checks TypeScript typeslint– runs oxlint and stylelintformat:test– checks files with oxfmtvitest– runs vitest testsvitest:watch– starts vitest watchtest– runscheck,stylelint,vitestandbuildscripts
Other scripts
storybook– starts storybook dev serverstorybook:build– build production storybook bundle tostorybook-staticformat:write– formats all files with oxfmt