neo-cmp-cli 1.2.11 → 1.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
- package/src/module/index.js +2 -2
- package/src/template/antd-custom-cmp-template/package.json +1 -1
- package/src/template/develop/neo-custom-cmp-template/package.json +1 -1
- package/src/template/echarts-custom-cmp-template/package.json +1 -1
- package/src/template/neo-custom-cmp-template/package.json +1 -1
- package/src/template/react-custom-cmp-template/package.json +1 -1
- package/src/template/react-ts-custom-cmp-template/package.json +1 -1
- package/src/template/vue2-custom-cmp-template/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,16 +34,16 @@ neo init -t=react-ts
|
|
|
34
34
|
3) 安装依赖并运行
|
|
35
35
|
```bash
|
|
36
36
|
# 预览自定义组件内容
|
|
37
|
-
|
|
37
|
+
neo preview
|
|
38
38
|
|
|
39
39
|
# 外链调试(在平台线上预览与调试)
|
|
40
|
-
|
|
40
|
+
neo linkDebug
|
|
41
41
|
|
|
42
42
|
# 构建库产物(默认输出到 dist)
|
|
43
|
-
|
|
43
|
+
neo build2lib
|
|
44
44
|
|
|
45
45
|
# 构建并发布到 OSS(确保 package.json 的 name 唯一、version 不重复)
|
|
46
|
-
|
|
46
|
+
neo publish2oss
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### 方法二:在现有项目中使用
|
|
@@ -82,13 +82,13 @@ npm run publish2oss
|
|
|
82
82
|
- **自动生成相关注册文件并注入**: 自动生成自定义组件注册文件和模型注册文件,并注入到构建脚本中,无需用户关注 [neo-register](https://www.npmjs.com/package/neo-register)。
|
|
83
83
|
|
|
84
84
|
## 发布到对象存储(OSS)
|
|
85
|
-
执行 `
|
|
85
|
+
执行 `neo publish2oss` 即可构建并上传到对象存储。发布前请确保:
|
|
86
86
|
- **package.json 的 name 唯一**
|
|
87
87
|
- **version 不重复**
|
|
88
88
|
- 已按需配置对象存储参数(支持自定义)
|
|
89
89
|
|
|
90
90
|
支持发布指定自定义组件:
|
|
91
|
-
执行 `
|
|
91
|
+
执行 `neo publish2oss --cmpType=xxCmp`
|
|
92
92
|
|
|
93
93
|
## 配置说明(neo.config.js)
|
|
94
94
|
neo-cmp-cli 默认提供完整配置;如需自定义,使用 `neo config init` 生成 `neo.config.js` 并按需修改。
|
package/package.json
CHANGED
package/src/module/index.js
CHANGED
|
@@ -154,7 +154,7 @@ yargs
|
|
|
154
154
|
(yargs) => {
|
|
155
155
|
yargs
|
|
156
156
|
.reset()
|
|
157
|
-
.usage(titleTip('Usage') + ': $0
|
|
157
|
+
.usage(titleTip('Usage') + ': $0 preview [options]')
|
|
158
158
|
.option('cmpType', {
|
|
159
159
|
alias: 't',
|
|
160
160
|
describe: '自定义组件项目名称'
|
|
@@ -198,7 +198,7 @@ yargs
|
|
|
198
198
|
(yargs) => {
|
|
199
199
|
yargs
|
|
200
200
|
.reset()
|
|
201
|
-
.usage(titleTip('Usage') + ': $0
|
|
201
|
+
.usage(titleTip('Usage') + ': $0 linkDebug')
|
|
202
202
|
.alias('h', 'help');
|
|
203
203
|
},
|
|
204
204
|
(argv) => {
|