crabatool 1.0.838 → 1.0.840

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.838",
3
+ "version": "1.0.840",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -13,6 +13,7 @@
13
13
  "sale-doc": "node ./test/test.js -convertJavadoc -targetPath F:/docs/sale -outPath F:/docs/sale.json",
14
14
  "start": "node run.js",
15
15
  "test": "node ./test/test.js",
16
+ "checkSale":"node ./test/test.js -checkjs -modName sale -webPath F:/sale/web/src/main/resources/static/sale -ignoreCheck /js/biz.js,/js/jquery.min.js,/_Sys/UI/SkinConfig.js,/_Sys/UI/SkinConfig.gspx,/Main.js,/js/content.min.js,/analysiscloud/ProductComboStatistics.js,/eshoporder/js/init.js,jarvis/js/biz/common.js,/jarvis/js/biz.js,/analysiscloud/LazyGrid.js,/analysiscloud/ProductComboStatistics.js,/analysiscloud/component/BaseQuery.js,/analysiscloud/js/init.js,/analysiscloud/component/ExtendCheckedQuery.js,/analysiscloud/Demob.js,/eshoporder/advance/,/analysiscloud/component/,/js/qrcode.min.js -globals recordsheet,AMap,shopsale -progress 0",
16
17
  "test_git": "node ./test/git.js -webPath F:/basicweb/www",
17
18
  "run": "node ./test/test.js -run -webPath F:/basicweb/www -refresh true -proxy \"{'/shell/framework/':{'target':'http://127.0.0.1:8339','changeOrigin':true,'logLevel':'debug'}}\"",
18
19
  "mergeinitjs": "node ./test/test.js -mergeinitjs",
package/tool/checkjs.js CHANGED
@@ -814,9 +814,13 @@ function postBaseData(data0, gspxData) {
814
814
  projectName: data0.projectName
815
815
  };
816
816
 
817
- if (data0.projectName == 'sale' && data0.branchName == 'master') {
818
- console.log('提交data:', JSON.stringify(pdata));
817
+
818
+ if (config.writeCheckJsLog == 1) {
819
+ var jsonStr = JSON.stringify(pdata);
820
+ console.log('提交data:', jsonStr);
821
+ //fs.writeFileSync('D://sale.json', jsonStr);
819
822
  }
823
+
820
824
  try {
821
825
  axios({
822
826
  method: 'post',
package/tool/start.js CHANGED
@@ -242,9 +242,11 @@ class Start {
242
242
  if (config.virtualName) {
243
243
  basePath = config.virtualName;
244
244
  }
245
- var crabaJs = utils.join(config.webPath, basePath, 'js/craba.min.js');
246
- if (!fs.existsSync(crabaJs)) {
247
- throw new Error('平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
245
+ if (!config.notCheckCraba) {
246
+ var crabaJs = utils.join(config.webPath, basePath, 'js/craba.min.js');
247
+ if (!fs.existsSync(crabaJs)) {
248
+ throw new Error('平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
249
+ }
248
250
  }
249
251
  }
250
252