Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lilchen96/vue-component-cli
- Owner: lilchen96
- License: mit
- Created: 2020-05-08T02:57:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T17:03:08.000Z (over 1 year ago)
- Last Synced: 2024-08-08T17:43:40.674Z (about 2 months ago)
- Topics: cli, component, npm-scripts, vue, webpack
- Language: JavaScript
- Homepage:
- Size: 15.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 中。