mirror of
https://github.com/hanzoai/turborepo.git
synced 2026-10-30 19:44:51 +00:00
### Description Some iterations for our Vitest documentation: - Made it clearer that this document is for interactions of Vitest and Turborepo, not just "Vitest in monorepos" - Fixed commands that were wrong - A new `with-vitest` example - A section on merged coverage reports - Other minor wording fixes Closes https://github.com/vercel/turborepo/issues/4517 ### Reviewer note The example does exactly one thing that I don't love, in that it doesn't have dependencies between `turbo run test` and the set of tasks that do the merging/reporting of coverage after that. This means you have to do `turbo run test && whatever-else` rather than a singular `turbo` command. I don't know if there's a great way to model this in our DSL right now, so I left it out. Ultimately, running `turbo run test && ...` isn't too big of a deal, right?...Right? ### Testing Instructions 👀 --------- Co-authored-by: Chris Olszewski <[email protected]>
955 B
955 B
Turborepo Vite starter
This is a community-maintained example. If you experience a problem, please submit a pull request with a fix. GitHub Issues will be closed.
Using this example
Run the following command:
npx create-turbo@latest -e with-vite-react
What's inside?
This Turborepo includes the following packages and apps:
Apps and Packages
web: react vite ts app@repo/ui: a stub component library shared bywebapplication@repo/eslint-config: sharedeslintconfigurations@repo/typescript-config:tsconfig.jsons used throughout the monorepo
Each package and app is 100% TypeScript.
Utilities
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting