1.0.17 • Published 3 years ago
@lugia/lugia-lugiad-parser v1.0.17
安装
npm i -g @lugia/lugia-lugiad-parser
参数说明
-V, --version output the version number
-p, --path <String> 指定目标mega项目地址
-m, --module <String> 指定查找替换的组件库名称
-w, --widgetName <String> 指定查找替换的组件名称
-nm, --newModule <String> 替换为新的模块名称
-nw, --newWidgetName <String> 替换为新的组件名称
-nv, --newVersion <String> 替换为新的组件库版本
-mp, --mergeProps <JSON> 指定要合并到组件的属性JSON信息
-h, --help display help for command
组件属性替换
将{text: 'hell12312'}合并设置到当前目录下的所有@lugia/lugia-web 组件库的 Progress 组件。
lugiad -p /Users/liguoxin/LugiaMegaProjects/test -m @lugia/lugia-web -w Progress -mp '{"text": "adfafa"}'
组件替换
将@lugia/lugia-web/Progress 替换为 @lugia/test-web/TestInput@1.2.0
lugiad -p . -m @lugia/lugia-web -w Progress -nm @lugia/test-web -nw TestInput -nv 1.2.0