Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Vitest + VueDemi + PNPM Workspace w/ Turborepo

License

Notifications You must be signed in to change notification settings

Gumball12/vitest-vue-demi-pnpm-monorepo

Repository files navigation

Vitest + VueDemi + PNPM Workspace (Monorepo) w/ Turborepo

VueDemi is a library that helps you create components that support both Vue 2 and Vue 3.

Here I show you how to test VueDemi for Vue 2 and Vue 3 using Vitest in a PNPM Workspace (Monorepo) environment configured with Turborepo.

Project Structure

  • packages/my-component: A Component created using VueDemi
  • packages/test-vue-2: Running tests on Vue <=2.6
  • packages/test-vue-3: Running tests on Vue >3.0

Getting Started

git clone https://github.com/Gumball12/vitest-vue-demi-pnpm-monorepo.git
cd vitest-vue-demi-pnpm-monorepo

pnpm install # install all dependencies

pnpm test-v2 # run tests for Vue <=2.6
pnpm test-v3 # run tests for Vue >=3.0
pnpm build # build my-component (Files built on `packages/my-component/dist/` are created)

License

MIT @Gumball12