My minimal Vue library starter, built on top of Vite & Vue 3
.github | ||
.vscode | ||
packages | ||
public | ||
src | ||
.gitignore | ||
.prettierrc | ||
components.d.ts | ||
index.html | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
tsconfig.json | ||
tsconfig.node.json | ||
unocss.config.ts | ||
vite.config.ts |
Vue Library Starter
A minimal Vue library starter, built on top of Vite & Vue 3
Table of Contents
TOC
Features
- Package manager pnpm, safe and fast
- Bundle with the library mode
- Release with semantic-release
- Publish to npm
Use the Template
GitHub Template
create a repo from this template on GitHub
Clone to local
git clone https://github.com/xiaoluoboding/vue-library-starter
cd vue-library-starter
Usage
Building it is as easy as 1, 2, 3.
1、Install dependencies
pnpm install
2、Build a library
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
3、Publish to npm
npm publish
License
MIT @xiaoluoboding