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 CHANGED
@@ -34,16 +34,16 @@ neo init -t=react-ts
34
34
  3) 安装依赖并运行
35
35
  ```bash
36
36
  # 预览自定义组件内容
37
- npm run preview
37
+ neo preview
38
38
 
39
39
  # 外链调试(在平台线上预览与调试)
40
- npm run linkDebug
40
+ neo linkDebug
41
41
 
42
42
  # 构建库产物(默认输出到 dist)
43
- npm run build2lib
43
+ neo build2lib
44
44
 
45
45
  # 构建并发布到 OSS(确保 package.json 的 name 唯一、version 不重复)
46
- npm run publish2oss
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
- 执行 `npm run publish2oss` 即可构建并上传到对象存储。发布前请确保:
85
+ 执行 `neo publish2oss` 即可构建并上传到对象存储。发布前请确保:
86
86
  - **package.json 的 name 唯一**
87
87
  - **version 不重复**
88
88
  - 已按需配置对象存储参数(支持自定义)
89
89
 
90
90
  支持发布指定自定义组件:
91
- 执行 `npm run publish2oss --cmpType=xxCmp`
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -154,7 +154,7 @@ yargs
154
154
  (yargs) => {
155
155
  yargs
156
156
  .reset()
157
- .usage(titleTip('Usage') + ': $0 init [options]')
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 dev')
201
+ .usage(titleTip('Usage') + ': $0 linkDebug')
202
202
  .alias('h', 'help');
203
203
  },
204
204
  (argv) => {
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.2.9",
50
+ "neo-cmp-cli": "^1.2.12",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5"
@@ -51,7 +51,7 @@
51
51
  "@types/react": "^16.9.11",
52
52
  "@types/react-dom": "^16.9.15",
53
53
  "@types/axios": "^0.14.0",
54
- "neo-cmp-cli": "^1.2.9",
54
+ "neo-cmp-cli": "^1.2.12",
55
55
  "husky": "^4.2.5",
56
56
  "lint-staged": "^10.2.9",
57
57
  "prettier": "^2.0.5"
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.2.9",
50
+ "neo-cmp-cli": "^1.2.12",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5",
@@ -52,7 +52,7 @@
52
52
  "@types/react": "^16.9.11",
53
53
  "@types/react-dom": "^16.9.15",
54
54
  "@types/axios": "^0.14.0",
55
- "neo-cmp-cli": "^1.2.9",
55
+ "neo-cmp-cli": "^1.2.12",
56
56
  "husky": "^4.2.5",
57
57
  "lint-staged": "^10.2.9",
58
58
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.2.9",
47
+ "neo-cmp-cli": "^1.2.12",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5"
@@ -46,7 +46,7 @@
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
47
  "@types/react": "^16.9.11",
48
48
  "@types/react-dom": "^16.9.15",
49
- "neo-cmp-cli": "^1.2.9",
49
+ "neo-cmp-cli": "^1.2.12",
50
50
  "husky": "^4.2.5",
51
51
  "lint-staged": "^10.2.9",
52
52
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.2.9",
47
+ "neo-cmp-cli": "^1.2.12",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5",