x-editor
web编辑器的模块功能
具体功能
vueController
vueController挂载到了window对象下面,作为全局对象使用。
版本发布
# 版本同步
npm version 1.1.0-beta.1
# 注意打包的时候将x-editor.d.ts移入dist文件中
yarn run build
# 上传到npm(发布release版本时不需要--tag=beta)
npm publish --tag=beta --access publish
如何在私有源创建作用域并上传包
# 设置作用域(相当于npm中的组织)
npm login --registry=http://120.25.59.85:14873 --scope=@cnhis-frontend
# 上传包文件
npm publish --registry=http://120.25.59.85:14873 --tag=beta --access publish
如何下载私有源中的项目
# 定义只有这个包文件来源于指定源
yarn add @cnhis-frontend/x-editor@3.0.1-beta.27 --registry=http://120.25.59.85:14873