1.0.0 • Published 4 years ago

dwqdqwd v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

IcuiFrame 2.3.0

qui插件依赖发布流程

  1. 请修改为package.jsonversion为要发布的目标版本号
{
  "name": "PROJECT_NAME",
  "version": "1.0.0", // 版本号
  "description": "",
  1. 请在项目angular目录下进行编译
npm install
npm run build:publish
  1. 会在angular目录生成 dist 目录,执行发布命令, 如过提示需要登陆npm账号则进行登陆
npm adduser --registry 私库地址  // 登陆
npm publish --registry 私库地址  // 发布

升级向导

如果历史项目需要支持模块化发布,需要进行如下修改:

  1. 复制 angular/scripts 目录到前端 angular 项目目录下

  2. 修改 pakcage.json 文件

scripts中添加build:publishpostinstall

  "build:publish": "ng run Icui:publish:production"
  "postinstall": "node scripts/install.js"

添加 files 字段

  "files": [
    "dist/",
    "scripts/"
  ]

添加shelljs依赖

 "dependencies": {
    "shelljs": "^0.8.3"
  }

不清楚可以参考 icuiuiframe 仓库的 angular/package.json 文件

  1. 修改 angular 项目下 angular.json

复制 architect.build节点另命名为architect.publish并修改 architect.publish.builder.options.outputPath为如下

"outputPath": "./dist",

具体发布方式参看 发布流程

模块化测试

  1. 测试通过搭建本地私库进行测试
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio

发布和安装可以通过本地私库进行