crabatool 1.0.838 → 1.0.839

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 +2 -1
  2. package/tool/checkjs.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.838",
3
+ "version": "1.0.839",
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',