neo-cmp-cli 1.7.3 → 1.7.5-beta.2

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.
@@ -103,22 +103,31 @@ module.exports = {
103
103
  }
104
104
  */
105
105
  },
106
- // NeoCRM 平台配置
106
+ // 授权码授权模式下的 NeoCRM 平台配置
107
107
  neoConfig: {
108
+ authType: 'oauth2', // 授权类型,可选值:oauth2(默认)、password
108
109
  neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
110
+ // 当 authType 为 oauth2 时,loginURL 配置项必填
111
+ loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth', // 登录授权 URL(默认:https://login.xiaoshouyi.com/auc/oauth2/auth)
109
112
  tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
110
- // NeoCRM 授权配置
113
+ },
114
+ /*
115
+ // 密码授权模式下的 NeoCRM 平台配置
116
+ neoConfig: {
117
+ authType: 'password', // 授权类型,可选值:oauth2(默认)、password
118
+ neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
119
+ tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
120
+ // 当 authType 为 password 时,auth 配置项必填
111
121
  auth: {
112
- client_id: 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
113
- client_secret: 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
114
- username: 'xx', // 用户在销售易系统中的用户名
115
- /**
116
- * password 用户在销售易系统中的账号密码加上 8 位安全令牌。
117
- * 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
118
- */
119
- password: 'xx xx', // 用户账户密码 + 8 位安全令牌
122
+ client_id: auth.client_id || 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
123
+ client_secret: auth.client_secret || 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
124
+ username: auth.username || 'xx', // 用户在销售易系统中的用户名
125
+ // password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
126
+ // 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
127
+ password: auth.password || 'xx xx', // 用户账户密码 + 8 位安全令牌
120
128
  },
121
129
  },
130
+ */
122
131
  pushCmp: {
123
132
  // 用于构建并发布至 NeoCRM 的相关配置
124
133
  /*
@@ -48,7 +48,7 @@
48
48
  "@commitlint/config-conventional": "^9.1.1",
49
49
  "@types/react": "^16.9.11",
50
50
  "@types/react-dom": "^16.9.15",
51
- "neo-cmp-cli": "^1.7.3",
51
+ "neo-cmp-cli": "^1.7.5",
52
52
  "husky": "^4.2.5",
53
53
  "lint-staged": "^10.2.9",
54
54
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@ module.exports = {
44
44
  // exports: ['xxModule'], // 数组写法,用于导出当前自定义组件中的第三方依赖模块
45
45
  exports: {
46
46
  // 对象写法,可用于导出自定义组件中的某个内容模块(需要使用绝对路径导出)
47
- 'chartWidget': path.resolve('./src/components/chartWidget'), // 导出图表自定义组件
47
+ chartWidget: path.resolve('./src/components/chartWidget'), // 导出图表自定义组件
48
48
  'neo-register': 'neo-register', // 导出 Neo 注册模块
49
49
  },
50
50
  // remoteDeps: ['xxCmpType'], // 远程依赖组件,表示当前自定义组件会用到的依赖组件,需要和 externals 配合使用
@@ -99,22 +99,31 @@ module.exports = {
99
99
  }
100
100
  */
101
101
  },
102
- // NeoCRM 平台配置
102
+ // 授权码授权模式下的 NeoCRM 平台配置
103
103
  neoConfig: {
104
+ authType: 'oauth2', // 授权类型,可选值:oauth2(默认)、password
104
105
  neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
106
+ // 当 authType 为 oauth2 时,loginURL 配置项必填
107
+ loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth', // 登录授权 URL(默认:https://login.xiaoshouyi.com/auc/oauth2/auth)
105
108
  tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
106
- // NeoCRM 授权配置
109
+ },
110
+ /*
111
+ // 密码授权模式下的 NeoCRM 平台配置
112
+ neoConfig: {
113
+ authType: 'password', // 授权类型,可选值:oauth2(默认)、password
114
+ neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
115
+ tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
116
+ // 当 authType 为 password 时,auth 配置项必填
107
117
  auth: {
108
- client_id: 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
109
- client_secret: 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
110
- username: 'xx', // 用户在销售易系统中的用户名
111
- /**
112
- * password 用户在销售易系统中的账号密码加上 8 位安全令牌。
113
- * 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
114
- */
115
- password: 'xx xx', // 用户账户密码 + 8 位安全令牌
118
+ client_id: auth.client_id || 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
119
+ client_secret: auth.client_secret || 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
120
+ username: auth.username || 'xx', // 用户在销售易系统中的用户名
121
+ // password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
122
+ // 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
123
+ password: auth.password || 'xx xx', // 用户账户密码 + 8 位安全令牌
116
124
  },
117
125
  },
126
+ */
118
127
  pushCmp: {
119
128
  // 用于构建并发布至 NeoCRM 的相关配置
120
129
  /*
@@ -48,7 +48,7 @@
48
48
  "@commitlint/config-conventional": "^9.1.1",
49
49
  "@types/react": "^16.9.11",
50
50
  "@types/react-dom": "^16.9.15",
51
- "neo-cmp-cli": "^1.7.3",
51
+ "neo-cmp-cli": "^1.7.5",
52
52
  "husky": "^4.2.5",
53
53
  "lint-staged": "^10.2.9",
54
54
  "prettier": "^2.0.5",
@@ -97,22 +97,31 @@ module.exports = {
97
97
  }
98
98
  */
99
99
  },
100
- // NeoCRM 平台配置
100
+ // 授权码授权模式下的 NeoCRM 平台配置
101
101
  neoConfig: {
102
+ authType: 'oauth2', // 授权类型,可选值:oauth2(默认)、password
102
103
  neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
104
+ // 当 authType 为 oauth2 时,loginURL 配置项必填
105
+ loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth', // 登录授权 URL(默认:https://login.xiaoshouyi.com/auc/oauth2/auth)
103
106
  tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
104
- // NeoCRM 授权配置
107
+ },
108
+ /*
109
+ // 密码授权模式下的 NeoCRM 平台配置
110
+ neoConfig: {
111
+ authType: 'password', // 授权类型,可选值:oauth2(默认)、password
112
+ neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
113
+ tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
114
+ // 当 authType 为 password 时,auth 配置项必填
105
115
  auth: {
106
- client_id: 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
107
- client_secret: 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
108
- username: 'xx', // 用户在销售易系统中的用户名
109
- /**
110
- * password 用户在销售易系统中的账号密码加上 8 位安全令牌。
111
- * 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
112
- */
113
- password: 'xx xx', // 用户账户密码 + 8 位安全令牌
116
+ client_id: auth.client_id || 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
117
+ client_secret: auth.client_secret || 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
118
+ username: auth.username || 'xx', // 用户在销售易系统中的用户名
119
+ // password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
120
+ // 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
121
+ password: auth.password || 'xx xx', // 用户账户密码 + 8 位安全令牌
114
122
  },
115
123
  },
124
+ */
116
125
  pushCmp: {
117
126
  // 用于构建并发布至 NeoCRM 的相关配置
118
127
  /*
@@ -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.7.3",
49
+ "neo-cmp-cli": "^1.7.5",
50
50
  "husky": "^4.2.5",
51
51
  "lint-staged": "^10.2.9",
52
52
  "prettier": "^2.0.5"
@@ -105,22 +105,31 @@ module.exports = {
105
105
  }
106
106
  */
107
107
  },
108
- // NeoCRM 平台配置
108
+ // 授权码授权模式下的 NeoCRM 平台配置
109
109
  neoConfig: {
110
+ authType: 'oauth2', // 授权类型,可选值:oauth2(默认)、password
110
111
  neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
112
+ // 当 authType 为 oauth2 时,loginURL 配置项必填
113
+ loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth', // 登录授权 URL(默认:https://login.xiaoshouyi.com/auc/oauth2/auth)
111
114
  tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
112
- // NeoCRM 授权配置
115
+ },
116
+ /*
117
+ // 密码授权模式下的 NeoCRM 平台配置
118
+ neoConfig: {
119
+ authType: 'password', // 授权类型,可选值:oauth2(默认)、password
120
+ neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
121
+ tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
122
+ // 当 authType 为 password 时,auth 配置项必填
113
123
  auth: {
114
124
  client_id: auth.client_id || 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
115
125
  client_secret: auth.client_secret || 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
116
126
  username: auth.username || 'xx', // 用户在销售易系统中的用户名
117
- /**
118
- * password 用户在销售易系统中的账号密码加上 8 位安全令牌。
119
- * 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
120
- */
127
+ // password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
128
+ // 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
121
129
  password: auth.password || 'xx xx', // 用户账户密码 + 8 位安全令牌
122
130
  },
123
131
  },
132
+ */
124
133
  pushCmp: {
125
134
  // 用于构建并发布至 NeoCRM 的相关配置
126
135
  /*
@@ -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.7.3",
55
+ "neo-cmp-cli": "^1.7.5",
56
56
  "husky": "^4.2.5",
57
57
  "lint-staged": "^10.2.9",
58
58
  "prettier": "^2.0.5"
@@ -96,22 +96,31 @@ module.exports = {
96
96
  }
97
97
  */
98
98
  },
99
- // NeoCRM 平台配置
99
+ // 授权码授权模式下的 NeoCRM 平台配置
100
100
  neoConfig: {
101
+ authType: 'oauth2', // 授权类型,可选值:oauth2(默认)、password
101
102
  neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
103
+ // 当 authType 为 oauth2 时,loginURL 配置项必填
104
+ loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth', // 登录授权 URL(默认:https://login.xiaoshouyi.com/auc/oauth2/auth)
102
105
  tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
103
- // NeoCRM 授权配置
106
+ },
107
+ /*
108
+ // 密码授权模式下的 NeoCRM 平台配置
109
+ neoConfig: {
110
+ authType: 'password', // 授权类型,可选值:oauth2(默认)、password
111
+ neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
112
+ tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
113
+ // 当 authType 为 password 时,auth 配置项必填
104
114
  auth: {
105
- client_id: 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
106
- client_secret: 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
107
- username: 'xx', // 用户在销售易系统中的用户名
108
- /**
109
- * password 用户在销售易系统中的账号密码加上 8 位安全令牌。
110
- * 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
111
- */
112
- password: 'xx xx', // 用户账户密码 + 8 位安全令牌
115
+ client_id: auth.client_id || 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
116
+ client_secret: auth.client_secret || 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
117
+ username: auth.username || 'xx', // 用户在销售易系统中的用户名
118
+ // password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
119
+ // 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
120
+ password: auth.password || 'xx xx', // 用户账户密码 + 8 位安全令牌
113
121
  },
114
122
  },
123
+ */
115
124
  pushCmp: {
116
125
  // 用于构建并发布至 NeoCRM 的相关配置
117
126
  /*
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@commitlint/cli": "^8.3.5",
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
- "neo-cmp-cli": "^1.7.3",
48
+ "neo-cmp-cli": "^1.7.5",
49
49
  "husky": "^4.2.5",
50
50
  "lint-staged": "^10.2.9",
51
51
  "prettier": "^2.0.5"
@@ -97,22 +97,31 @@ module.exports = {
97
97
  }
98
98
  */
99
99
  },
100
- // NeoCRM 平台配置
100
+ // 授权码授权模式下的 NeoCRM 平台配置
101
101
  neoConfig: {
102
+ authType: 'oauth2', // 授权类型,可选值:oauth2(默认)、password
102
103
  neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
104
+ // 当 authType 为 oauth2 时,loginURL 配置项必填
105
+ loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth', // 登录授权 URL(默认:https://login.xiaoshouyi.com/auc/oauth2/auth)
103
106
  tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
104
- // NeoCRM 授权配置
107
+ },
108
+ /*
109
+ // 密码授权模式下的 NeoCRM 平台配置
110
+ neoConfig: {
111
+ authType: 'password', // 授权类型,可选值:oauth2(默认)、password
112
+ neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
113
+ tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
114
+ // 当 authType 为 password 时,auth 配置项必填
105
115
  auth: {
106
- client_id: 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
107
- client_secret: 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
108
- username: 'xx', // 用户在销售易系统中的用户名
109
- /**
110
- * password 用户在销售易系统中的账号密码加上 8 位安全令牌。
111
- * 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
112
- */
113
- password: 'xx xx', // 用户账户密码 + 8 位安全令牌
116
+ client_id: auth.client_id || 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
117
+ client_secret: auth.client_secret || 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
118
+ username: auth.username || 'xx', // 用户在销售易系统中的用户名
119
+ // password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
120
+ // 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
121
+ password: auth.password || 'xx xx', // 用户账户密码 + 8 位安全令牌
114
122
  },
115
123
  },
124
+ */
116
125
  pushCmp: {
117
126
  // 用于构建并发布至 NeoCRM 的相关配置
118
127
  /*
@@ -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.7.3",
50
+ "neo-cmp-cli": "^1.7.5",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5"
@@ -105,22 +105,31 @@ module.exports = {
105
105
  cssSourceMap: true
106
106
  */
107
107
  },
108
- // NeoCRM 平台配置
108
+ // 授权码授权模式下的 NeoCRM 平台配置
109
109
  neoConfig: {
110
+ authType: 'oauth2', // 授权类型,可选值:oauth2(默认)、password
110
111
  neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
112
+ // 当 authType 为 oauth2 时,loginURL 配置项必填
113
+ loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth', // 登录授权 URL(默认:https://login.xiaoshouyi.com/auc/oauth2/auth)
111
114
  tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
112
- // NeoCRM 授权配置
115
+ },
116
+ /*
117
+ // 密码授权模式下的 NeoCRM 平台配置
118
+ neoConfig: {
119
+ authType: 'password', // 授权类型,可选值:oauth2(默认)、password
120
+ neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
121
+ tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址(默认:https://login.xiaoshouyi.com/auc/oauth2/token)
122
+ // 当 authType 为 password 时,auth 配置项必填
113
123
  auth: {
114
- client_id: 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
115
- client_secret: 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
116
- username: 'xx', // 用户在销售易系统中的用户名
117
- /**
118
- * password 用户在销售易系统中的账号密码加上 8 位安全令牌。
119
- * 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
120
- */
121
- password: 'xx xx', // 用户账户密码 + 8 位安全令牌
124
+ client_id: auth.client_id || 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
125
+ client_secret: auth.client_secret || 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
126
+ username: auth.username || 'xx', // 用户在销售易系统中的用户名
127
+ // password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
128
+ // 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
129
+ password: auth.password || 'xx xx', // 用户账户密码 + 8 位安全令牌
122
130
  },
123
131
  },
132
+ */
124
133
  pushCmp: {
125
134
  // 用于构建并发布至 NeoCRM 的相关配置
126
135
  /*
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@commitlint/cli": "^8.3.5",
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
- "neo-cmp-cli": "^1.7.3",
48
+ "neo-cmp-cli": "^1.7.5",
49
49
  "husky": "^4.2.5",
50
50
  "lint-staged": "^10.2.9",
51
51
  "prettier": "^2.0.5",
@@ -113,6 +113,12 @@ function formatConfigObject(obj, indent = 0, fileDir = '') {
113
113
  * @param {*} cmpZipUrl 自定义组件源码文件地址(zip包地址)
114
114
  * @param {*} cmpName 自定义组件名称
115
115
  * @param {*} componentBaseDir 自定义组件目录
116
+ *
117
+ * 拉取线上自定义组件源码 规则:
118
+ * 1、对于 组件源码中 src/components 中的所有文件 copy 至 当前项目 src/components,非覆盖式(copy 前判断是否存在);
119
+ * 2、对于 组件源码中的 配置文件(neo.config.js)内容 和 当前项目配置 进行 非覆盖式 merge 处理;
120
+ * 3、对于 组件源码中的 tsconfig.json 文件内容 和 当前项目 tsconfig  进行 非覆盖式 merge 处理;
121
+ * 4、对于 组件源码中的 package.json 文件内容 和 当前项目 package.json  进行 非覆盖式 merge 处理,并识别新增 依赖,提示用户 重新安装依赖
116
122
  */
117
123
  module.exports = async function (cmpZipUrl, cmpName, componentBaseDir = './src/components') {
118
124
  const finalCmpName = cmpName;
@@ -1,7 +1,7 @@
1
1
  const { execSync } = require('child_process');
2
2
 
3
3
  // 所有需要废弃的版本(1.6.2 之前的所有版本)
4
- const versionsToDeprecate = ["1.6.3"];
4
+ const versionsToDeprecate = ["1.6.5", "1.6.6", "1.6.7", "1.6.8", "1.7.0", "1.7.1", "1.7.2", "1.7.3"];
5
5
 
6
6
  const packageName = 'neo-cmp-cli';
7
7
  const deprecateMessage = '此版本为开发中版本(存在 bug),请升级到最新版本。';