Opinionated Vite starter template.
Use this repository as a GitHub template or use degit to clone to your machine with an empty git history:
npx degit wtchnm/Vitamin#main my-app
Then, install the dependencies:
pnpm install
.github
directory.cypress/integration/index.spec.ts
file.favicon.png
, apple-touch-icon.png
, android-chrome-192x192.png
and android-chrome-512x512.png
. favicon.io is a cool tool for generating these assets.src
folder, remove the __tests__
, api
and components
folder and the types.ts
file.react-query
, remove the query client logic in the main.tsx
file.index.html
and vite.config.ts
. The Inter font is included, so remove it if you want.LICENSE
file.name
field in package.json.pnpm dev
- start a development server with hot reload.pnpm build
- build for production. The generated files will be on the dist
folder.pnpm preview
- locally preview the production build.pnpm test
- run unit and integration tests related to changed files based on git.pnpm test:ci
- run all unit and integration tests in CI mode.pnpm test:e2e
- run all e2e tests with the Cypress Test Runner.pnpm test:e2e:headless
- run all e2e tests headlessly.pnpm format
- format all files with Prettier.pnpm lint
- runs TypeScript, ESLint and Stylelint.pnpm validate
- runs lint
, test:ci
and test:e2e:ci
.