crabatool 1.0.48 → 1.0.49

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/index.js CHANGED
@@ -28,6 +28,9 @@ module.exports.run = function(options) {
28
28
  }
29
29
  }
30
30
 
31
+
32
+ showLocalVersion();
33
+ console.log("---------------------------------------------------------------------------------------------------------");
31
34
  // 2. 开发环境让开发选择功能
32
35
  waitInput();
33
36
  }
@@ -81,10 +84,6 @@ function checkConfig() {
81
84
  if (!fs.existsSync(crabaJs)) {
82
85
  throw new Error('请检查craba.js,平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
83
86
  }
84
-
85
- showLocalVersion();
86
-
87
- console.log("---------------------------------------------------------------------------------------------------------");
88
87
  }
89
88
 
90
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tool/upgrade.js CHANGED
@@ -180,7 +180,7 @@ class Upgrade {
180
180
  var dest = this.projectPath;
181
181
  var source = config.CachePath;
182
182
  var ignores = ["server", "www"];
183
-
183
+ console.log("拷贝文件中..");
184
184
  utils.copyFiles(source, dest, ignores, utils.createDelegate(this, function(fileName) {
185
185
  this.pb.render({ value: ++this.pb.value, text: fileName });
186
186
  }));
@@ -193,7 +193,7 @@ class Upgrade {
193
193
  downloadFile(uri, filePath, callback) {
194
194
  if (!uri || !filePath) throw new Error('uri或filePath不能为空');
195
195
 
196
- //console.log('下载craba文件');
196
+ console.log('下载craba文件');
197
197
  var that = this;
198
198
  // 获取远端图片
199
199
  axios({