wtg-components
v4.0.7
Published
Starter template to build component library for vue.js 2-3
Maintainers
Readme
Package Template
发布包模板,Vue2.7 版本支持后期方便迁移 Vue3
Features
Requirement
私有源
GitHub Template
If you prefer to do it manually with the cleaner git history
# 拉取仓库
$ git clone http://39.105.213.162:8080/liwangyong/package-template.git
# 下载依赖
$ npm i --registry=http://39.106.33.20:8081/repository/npm-hosted/ (同步至npm-public)
# 添加新的组件模板
$ npm run new
# 启动项目
$ pnpm dev
# 打包项目
$ pnpm build:libPublish to NPM
# 发送库
## 没有登录
npm login –-registry=http://39.106.33.20:8081/repository/npm-hosted/
## 登录过了
npm publish
## beta库
"version": "x.x.x-beta.x",
npm publish --tag beta
Vue 2
```js
import Vue from 'vue'
import {PackagesButton} from 'wtg-components'
Vue.use(PackagesButton)
```