# vue-component-template **Repository Path**: mengqing/vue-component-template ## Basic Information - **Project Name**: vue-component-template - **Description**: 基于rollup打包的 vue@2 组件开发模板. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-11-01 - **Last Updated**: 2022-06-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: Vue-Component ## README # vue-component-template 基于rollup打包 `vue@2.x` 组件开发模板. > @vue/cli 4.5.15 ## features 1. 基于rollup打包,默认支持 `es`,`umd`,`iife`模式 2. 基于vuepress编写文档 3. 支持部署演示demo 4. 配合`travis`自动部署到`gh` ## useage ### 1. rollup打包 ```bash yarn build ``` ### 2. 测试example ```bash yarn dev #开发 yarn demo:build #打包 ``` ### 3. Vuepress编写文档 ```bash yarn docs:dev #开发 yarn docs:build #打包 ``` ## refs - [rollup API列表](https://www.rollupjs.com/guide/big-list-of-options) - [rollup从入门到打包一个按需加载的组件库](https://juejin.cn/post/6934698510436859912)