Kaynağa Gözat

Merge branch 'master' of ssh://10.10.100.21/source/platform-bi-web

zhuth 7 yıl önce
ebeveyn
işleme
2207451e34
3 değiştirilmiş dosya ile 20 ekleme ve 1 silme
  1. 13 1
      .eslintrc.js
  2. 4 0
      Jenkinsfile
  3. 3 0
      package.json

+ 13 - 1
.eslintrc.js

@@ -1,4 +1,16 @@
 module.exports = {
     "parser": "babel-eslint",
-    "extends": 'umi'
+    "extends": 'umi',
+    "parserOptions": {
+        "ecmaVersion": 2019,
+        "sourceType": "module",
+        "impliedStrict": true,
+        "ecmaFeatures": {
+            "jsx": true,
+            "impliedStrict": true,
+            "globalReturn": false,
+            "experimentalObjectRestSpread": true,
+            "legacyDecorators": true
+        }
+    },
 };

+ 4 - 0
Jenkinsfile

@@ -27,7 +27,11 @@ pipeline {
 
         stage('Install') {
             steps {
+                sh 'cnpm cache clean --force'
+                sh 'cnpm cache verify'
                 sh 'cnpm install'
+                // sh 'cnpm install'   2018/9/5 有报告cnpm会在这里出错  暂时用回npm
+
             }
         }
 

+ 3 - 0
package.json

@@ -45,5 +45,8 @@
     "husky": "^0.12.0",
     "redbox-react": "^1.4.3",
     "roadhog": "^2.0.0"
+  },
+  "cnpm": {
+    "mode": "npm"
   }
 }