crabatool 1.0.828 → 1.0.831

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": "crabatool",
3
- "version": "1.0.828",
3
+ "version": "1.0.831",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/tool/compress.js CHANGED
@@ -314,6 +314,7 @@ function compressGspx(filePath) {
314
314
  if (!fs.existsSync(filePath)) {
315
315
  return '';
316
316
  }
317
+ console.log('compress页面gspx:' + filePath);
317
318
  const xmlMinifier = require('xml-minifier');
318
319
  let xml = fs.readFileSync(filePath, 'utf8');
319
320
  xml = removeXMLComments(xml); // 手动替换注释,xml-minifier的removeComments没有生效的
package/tool/upgrade.js CHANGED
@@ -157,7 +157,8 @@ class Upgrade {
157
157
  that.gitLogs = data.remark; // 先记录日志列表
158
158
  that.updateCraba(null, true); // 需要更新平台
159
159
  } else {
160
- console.log('没有检测到更新标记,无需更新平台资源');
160
+ console.log('[crabaversion]没有标记,无需更新craba');
161
+ console.log('-------------没有检测到更新标记,无需更新平台资源-----------');
161
162
  }
162
163
  }).catch(function(err) {
163
164
  console.log(err.message);
@@ -199,6 +200,7 @@ class Upgrade {
199
200
  if (check) {
200
201
  var result = this.checkGitPermission();
201
202
  if (!result) {
203
+ console.log('[crabaversion]craba有更新标记,但git仓库没有推送权限,取消craba的更新操作。');
202
204
  console.log('-------------当前git没有推送权限,取消craba的更新操作----------');
203
205
  return;
204
206
  }
@@ -214,8 +216,8 @@ class Upgrade {
214
216
  console.log(config.version + '对应平台版本:', newData);
215
217
 
216
218
  if (localData.version == newData.version) {
217
- console.log(':::本地已经是最新版本,不需要更新:::');
218
- console.log('[crabaversion]没有更新,本地已经是最新版本:' + localData.version);
219
+ console.log('----------:::本地已经是最新版本,不需要更新:::------------');
220
+ console.log('[crabaversion]有更新标记,但无需更新craba。因为本地已经是最新版本:' + localData.version);
219
221
  if (this.hasLogs()) {
220
222
  this.clearLog();
221
223
  }