Add `vitest-preview setup` CLI
nvh95 opened this issue · comments
Is your feature request related to a problem? Please describe.
When integrating vitest-preview
, beside installing pnpm add -D vitest-preview
, users need to do some other things like:
- Set vitest config
css: true
- Setup global CSS
- Add
vitest-preview
topackage.json
's scripts - Update
.gitignore
- Add
debug()
to a test file
Describe the solution you'd like
- Add a new CLI
vitest-preview setup
- Update the docs to recommend new approach
Describe how should we implement this feature
Consider https://github.com/nvh95/jest-preview/blob/61648e16e455f4eb561c267c9f7d897c953e6dcb/cli/index.js
Additional context
People usually integrate vitest-preview
by running pnpm add -D vitest-preview
and it's very easy for them to forget to config a thing.