Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lilchen96/vue-component-cli

Vue single component cli to publish npm
https://github.com/lilchen96/vue-component-cli

cli component npm-scripts vue webpack

Last synced: 3 days ago
JSON representation

Vue single component cli to publish npm

Awesome Lists containing this project

README

        

## vue-component-cli

vue 单组件脚手架

#### 命令

1.yarn install 安装依赖包

2.yarn run dev 启动测试服务(默认端口:8000)

3.yarn run build 打包

4.yarn run init 初始化包信息

5.yarn run login 登录 npm 账号

6.yarn run publish 将组件发布到 npm

#### 使用说明

1.组件写在 src/component/src/index.vue 中。

2.组件的 name 是注册的名字。

2.打包后的文件(bundle.js)在 src/component/dist 中。