@topibd/ibd-product-cli
v1.7.2
Published
ibd-product-cli
Downloads
2
Readme
ibd-product-cli
安装
全局安装: npm install -g @topibd/ibd-product-cli
使用
1.在product目录下,执行 :ibd-pd init|i;
2.执行ibd-pd new
3.需要更新项目名称,或者项目依赖等,执行:
cd product; 修改ibd-product.config.json文件
ibd-pd update.
ibd-product.config.json文件内容:
{
"name" : "loo", //此处为产品名称,产品的配置@topibd/app-main-config下的
config文件的名应与此处一致,必填,
"apiBase": "http://127.0.0.1:3000/", //此处为后台接口主地址,不填时默认为"http://127.0.0.1:3000/",可选
"versionType": "Default", //此处为版本类型,不填时默认为"Default",可选
"defaultLang": "zhcn", //此处为默认语言,不填时默认为"zhcn",可选
"dependencies" : { "@topibd" : [ //此处为产品依赖的模块,@topibd/ibd-core,@topibd/app-main,@topibd/app-main-config,@topibd/login,
@toplinker/wust不需要添加,可选
"sys-user","sys-role","sys-personal-center","sys-enum","sys-conf","mes-workcenter"
]
},
"appOutDir" : "../../lb-api/client/topibd/", //项目打包输出路径,默认为“../lb-api/client/topibd/”,可选
"prefix" : "ibd", //组件标签前缀,默认为“ibd”,可选
}