bluwy / create-vite-extra

Extra Vite templates
Other
411 stars 65 forks source link

Add preconfigured vitest to library template #65

Open moniuch opened 3 days ago

moniuch commented 3 days ago

I think creating a library without unit tests is a rare case and a bit scary thing to do, therefore I'd suggest that the npm create vite-extra > library comes with vitest included and properly configured. Could be as a separate template, or could be as a cli opt-in step.

Btw, I've tested a couple of available templates and currently there doesn't seem to be any vanilla template that would offer vitest out of the box. So this would add an extra value IMO, and what template would be best for that if not a library? :)

bluwy commented 2 days ago

I'd currently like to keep the templates minimal, so things like testing, linting, formatting are not included by default, similar to create-vite. So I prefer to not add this for now. A more opinionated setup could be done with a different template repo though.