neo-cmp-cli 1.2.22 → 1.2.23
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 +2 -3
- package/package.json +1 -1
- 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
|
@@ -74,12 +74,11 @@ npm run publish2oss
|
|
|
74
74
|
- **neo init**: 交互式创建自定义组件(支持 -t、--name)。
|
|
75
75
|
- **neo preview**: 本地预览自定义组件内容,默认支持热更新与接口代理。
|
|
76
76
|
- **neo linkDebug**: 外链调试模式,在平台端页面设计器中调试自定义组件。
|
|
77
|
-
- **neo build2lib**: 产出 UMD/ESM 库文件(可配置)。
|
|
78
77
|
- **neo publish2oss**: 构建并上传到对象存储(可自定义配置对象存储)。
|
|
79
78
|
|
|
80
79
|
## 自动识别自定义组件
|
|
81
80
|
- **自动生成入口配置**: 当 `entry` 未配置时,自动从 `src/components` 目录下扫描并识别自定义组件,`src/components` 下的子目录名称作为自定义组件的 cmpType,并以其目录下的 `index.ts/.tsx/.js/.jsx` 文件作为组件内容文件,model.[tj]s 作为模型内容文件;
|
|
82
|
-
- **自动注册自定义组件**:
|
|
81
|
+
- **自动注册自定义组件**: 当 `entry` 未配置时,自动生成自定义组件注册文件和模型注册文件,并注入到构建脚本中,无需用户手动编写注册文件 [neo-register](https://www.npmjs.com/package/neo-register)。
|
|
83
82
|
|
|
84
83
|
## 支持本地构建并发布到对象存储(OSS)
|
|
85
84
|
执行 `neo publish2oss` 即可构建并上传到对象存储。发布前请确保:
|
|
@@ -262,7 +261,7 @@ module.exports = {
|
|
|
262
261
|
|
|
263
262
|
步骤3:在自定义组件B 源码中使用 自定义组件 A 分享出来的模块(xxModule_A)
|
|
264
263
|
```javascript
|
|
265
|
-
import ChartWidget from 'chart-widget'; // 导入自定义组件 A
|
|
264
|
+
import ChartWidget from 'chart-widget'; // 导入自定义组件 A 共享出来的模块
|
|
266
265
|
```
|
|
267
266
|
|
|
268
267
|
|
package/package.json
CHANGED