任茂勇 пре 3 година
родитељ
комит
c717c7b5fe
4 измењених фајлова са 10 додато и 15 уклоњено
  1. 1 1
      .env.production
  2. 3 3
      .gitignore
  3. 5 0
      .travis.yml
  4. 1 11
      vue.config.js

+ 1 - 1
.env.production

@@ -2,5 +2,5 @@
 ENV = 'production'
 
 # base api
-VUE_APP_BASE_API = '/'
+VUE_APP_BASE_API = '/prod-api'
 

+ 3 - 3
.gitignore

@@ -1,9 +1,11 @@
 .DS_Store
 node_modules/
-/dist/
+dist/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
+package-lock.json
+tests/**/coverage/
 
 # Editor directories and files
 .idea
@@ -12,5 +14,3 @@ yarn-error.log*
 *.ntvs*
 *.njsproj
 *.sln
-package-lock.json
-

+ 5 - 0
.travis.yml

@@ -0,0 +1,5 @@
+language: node_js
+node_js: 10
+script: npm run test
+notifications:
+  email: false

+ 1 - 11
vue.config.js

@@ -36,17 +36,7 @@ module.exports = {
       warnings: false,
       errors: true
     },
-    proxy: {
-      // change xxx-api/login => mock/login
-      // detail: https://cli.vuejs.org/config/#devserver-proxy
-      [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:8082`,
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      }
-    }
+    before: require('./mock/mock-server.js')
   },
   configureWebpack: {
     // provide the app's title in webpack's name field, so that