neo-cmp-cli 1.7.10 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.7.10",
3
+ "version": "1.7.12",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -176,6 +176,7 @@ yargs
176
176
  try {
177
177
  const loginService = new NeoLoginService(curConfig.neoConfig);
178
178
  await loginService.login();
179
+ process.exit(0);
179
180
  } catch (error) {
180
181
  errorLog(`\n登录失败: ${error.message}`);
181
182
  process.exit(1);
@@ -195,6 +196,7 @@ yargs
195
196
  try {
196
197
  const loginService = new NeoLoginService(curConfig.neoConfig);
197
198
  await loginService.logout();
199
+ process.exit(0);
198
200
  } catch (error) {
199
201
  errorLog(`\n登出失败: ${error.message}`);
200
202
  process.exit(1);
@@ -66,11 +66,12 @@ module.exports = function (projectPath, options = {}) {
66
66
  console.log('\n' + '='.repeat(60));
67
67
  console.log('💡 提示:要切换到新建项目目录,请执行以下命令:');
68
68
  console.log(`\n cd ${projectName} \n`);
69
- console.log(`\n neo open -n ${projectName} \n`);
70
69
  console.log('='.repeat(60));
71
70
  console.log('\n📝 说明1:组件开发工具(neo-cmp-cli)无法直接改变当前命令窗口工作目录,');
72
71
  console.log(` 您需要手动执行上述命令才能进入刚创建的自定义组件项目(${projectName})。`);
73
- console.log(`\n📝 说明2:组件开发工具(neo-cmp-cli)默认自动打开编辑器(neo open -n ${projectName})。\n`);
72
+ console.log(
73
+ `\n📝 说明2:组件开发工具(neo-cmp-cli)默认自动打开编辑器(cursor 或 vscode): neo open -n ${projectName}。\n`
74
+ );
74
75
 
75
76
  // 自动打开 IDE编辑器(异步执行,不需要等待)
76
77
  openProject('auto', projectPath).catch((error) => {
@@ -82,7 +82,7 @@ const addNeoCommonModules = (modules) => {
82
82
  window.__NeoCommonModules[moduleId].default = curModule.default;
83
83
  }
84
84
  } else {
85
- window.__NeoCommonModules[moduleId] = curModule
85
+ window.__NeoCommonModules[moduleId] = curModule;
86
86
  }
87
87
  })
88
88
  }
@@ -129,13 +129,6 @@ const buildComponentData = async (assetsRoot, cmpInfo) => {
129
129
  * 4. 保存组件信息到 NeoCRM 平台:将组件信息保存到平台数据库
130
130
  */
131
131
  const pushCmp = async (config, cmpType) => {
132
- const { auth: credentials } = config;
133
-
134
- if (!credentials) {
135
- errorLog('未找到 NeoCRM 平台授权配置(neo.config.js / neoConfig)');
136
- return;
137
- }
138
-
139
132
  const spinner = ora('正在发布组件...').start();
140
133
 
141
134
  try {
@@ -1,7 +1,7 @@
1
1
  const { execSync } = require('child_process');
2
2
 
3
3
  // 所有需要废弃的版本(1.6.2 之前的所有版本)
4
- const versionsToDeprecate = ["1.7.5", "1.7.5-beta.1", "1.7.5-beta.2", "1.7.6", "1.7.7", "1.7.8", "1.7.9"];
4
+ const versionsToDeprecate = ["1.7.5", "1.7.5-beta.1", "1.7.5-beta.2", "1.7.6", "1.7.7", "1.7.8", "1.7.9", "1.7.10"];
5
5
 
6
6
  const packageName = 'neo-cmp-cli';
7
7
  const deprecateMessage = '此版本为开发中版本(存在 bug),请升级到最新版本。';