# Vue Library Starter [![NPM][npmBadge]][npmUrl] [![Minzip Package][bundlePhobiaBadge]][bundlePhobiaUrl] [![NPM Download][npmDtBadge]][npmDtUrl] [npmBadge]: https://img.shields.io/npm/v/vue-library-starter.svg?maxAge=2592000 [npmUrl]: https://www.npmjs.com/package/vue-library-starter [npmDtBadge]: https://img.shields.io/npm/dt/vue-library-starter.svg [npmDtUrl]: https://www.npmjs.com/package/vue-library-starter [bundlePhobiaBadge]: https://img.shields.io/bundlephobia/minzip/vue-library-starter [bundlePhobiaUrl]: https://bundlephobia.com/package/vue-library-starter@latest > A minimal Vue library starter, built on top of Vite & Vue 3 ## Table of Contents
TOC - [Vue Library Starter](#vue-library-starter) - [Table of Contents](#table-of-contents) - [Features](#features) - [Use the Template](#use-the-template) - [GitHub Template](#github-template) - [Clone to local](#clone-to-local) - [Usage](#usage) - [1、Install dependencies](#1install-dependencies) - [2、Build a library](#2build-a-library) - [3、Publish to npm](#3publish-to-npm) - [License](#license)
## Features - Package manager [pnpm](https://pnpm.js.org/), safe and fast - Bundle with the [library mode](https://vitejs.dev/guide/build.html#library-mode) - Release with [semantic-release](https://www.npmjs.com/package/semantic-release) - Publish to [npm](https://docs.npmjs.com/cli/v8/commands/npm-publish) ## Use the Template ### GitHub Template [create a repo from this template on GitHub](https://github.com/new?template_name=vue-library-starter&template_owner=xiaoluoboding) ### Clone to local ```bash 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 ```bash 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` ```bash pnpm run build:lib ``` ### 3、Publish to npm ``` npm publish ``` ## License MIT [@xiaoluoboding](https://github.com/xiaoluoboding)