A monorepo starter for building Vue libraries. Written in TypeScript and supports TSX.
- Vite
- TypeScript
- Supports both Vue SFCs and Vue TSX components
- pnpm
- ESLint and Prettier
- Vitest and Playwright for testing (soon)
- GitHub Actions for CI and release (soon)
-
Download the repo. You can either:
a. Clone the repo without the git history:
pnpx degit https://github.com/mujahidfa/vue-lib
b. Or, create a repo based on this template via the GitHub template generator.
-
Install packages.
pnpm install
-
Run the dev server to open up the playground.
cd packages/vue-lib/ pnpm dev
-
Build the library and run the demo app to see the library in action.
cd packages/vue-lib/ pnpm build cd ../demo/ pnpm dev