This skill bootstraps a minimal Vite Vue 3 library starter with pnpm workspace and TypeScript support, generating all files directly.
npx playbooks add skill lizychy0329/starter-skills --skill vite-lib-vue-pnpm-starter-skill
This skill creates a minimal Vite + Vue 3 library project template using pnpm workspace for dependency management. It directly generates all necessary files without using Vite's official initialization commands.
mkdir -p src/components
mkdir -p playground/src
mkdir -p playground/public
Generate the following essential files:
package.json with workspace configuration and build scriptspnpm-workspace.yaml for monorepo setupvite.config.ts with library build configurationtsconfig.json, tsconfig.app.json, tsconfig.node.json)index.ts, src/index.ts, src/components/index.ts)src/components/Counter.vue)playground/package.json, playground/vite.config.ts, playground/index.html, etc.).gitignore filepnpm install
pnpm build
Expected Result:
dist/ directoryindex.es.js, index.umd.js, index.d.tscd playground && pnpm dev
Expected Result:
project-root/
├── .gitignore
├── index.ts
├── package.json
├── pnpm-workspace.yaml
├── tsconfig.json
├── tsconfig.app.json
├── tsconfig.node.json
├── vite.config.ts
├── src/
│ ├── index.ts
│ ├── components/
│ │ ├── index.ts
│ │ └── Counter.vue
│ └── style.css
├── playground/
│ ├── .gitignore
│ ├── index.html
│ ├── package.json
│ ├── tsconfig.json
│ ├── tsconfig.app.json
│ ├── tsconfig.node.json
│ ├── vite.config.ts
│ ├── public/
│ └── src/
│ ├── main.ts
│ ├── App.vue
│ ├── style.css
│ └── assets/
└── dist/ (generated after build)
vue as external dependency in vite.config.tsvite-plugin-dts for TypeScript declaration generationpackage.json for different module systemsworkspace:* for local developmentworkspace:* for latest codevue-tsc -b runs before buildA: Faster installation, stricter dependency management, and better monorepo support.
A: Isolated environment with its own dependencies, referencing main library via workspace.
A: Avoids duplicate bundling and version conflicts, follows library best practices.
A: Enables independent compilation of subprojects for faster builds and more accurate type checking.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.