crabatool 1.0.839 → 1.0.841

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tool/start.js +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.839",
3
+ "version": "1.0.841",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/tool/start.js CHANGED
@@ -150,6 +150,7 @@ class Start {
150
150
  { name: '-checkutf8', type: 'boolean' },
151
151
  { name: '-clearCache', type: 'boolean' },
152
152
  { name: '-noOpen', type: 'boolean' },
153
+ { name: '-notCheckCraba', type: 'boolean' },
153
154
 
154
155
  { name: '-proxy', type: 'json' },
155
156
  { name: '-proxySrc', type: '' }
@@ -242,9 +243,11 @@ class Start {
242
243
  if (config.virtualName) {
243
244
  basePath = config.virtualName;
244
245
  }
245
- var crabaJs = utils.join(config.webPath, basePath, 'js/craba.min.js');
246
- if (!fs.existsSync(crabaJs)) {
247
- throw new Error('平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
246
+ if (!config.notCheckCraba) {
247
+ var crabaJs = utils.join(config.webPath, basePath, 'js/craba.min.js');
248
+ if (!fs.existsSync(crabaJs)) {
249
+ throw new Error('平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
250
+ }
248
251
  }
249
252
  }
250
253