A minimal Vue library starter, built on top of Vite & Vue 3
TOC
- Package manager pnpm, safe and fast
- Bundle with the library mode
- Release with semantic-release
- Publish to npm
create a repo from this template on GitHub
git clone https://github.com/xiaoluoboding/vue-library-starter
cd vue-library-starter
Building it is as easy as 1, 2, 3.
pnpm install
Rename all the vue-library-starter
to your component name in the file package.json、vite.config.ts
, eg: my-component
pnpm run build:lib
npm publish
MIT @xiaoluoboding
-
remove sass devDependencies
- Support Top-level await in script setup -
Add @antfu/eslint-config
-
Fix vue module type error
-
Fix @vue/tsconfig type error
-
Replace highlight.js with shiki
-
Replace inline-css with vite-plugin-libcss
-
Remove prettier config files