添加测试环境配置
This commit is contained in:
14
angular.json
14
angular.json
@ -47,7 +47,7 @@
|
|||||||
"inject": false
|
"inject": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"node_modules/quill/dist/quill.min.js",
|
"node_modules/quill/dist/quill.min.js",
|
||||||
"node_modules/perfect-scrollbar/dist/perfect-scrollbar.js",
|
"node_modules/perfect-scrollbar/dist/perfect-scrollbar.js",
|
||||||
@ -83,6 +83,18 @@
|
|||||||
"maximumError": "10mb"
|
"maximumError": "10mb"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
"test": {
|
||||||
|
"fileReplacements": [{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/eascs/environment.test.ts"
|
||||||
|
}],
|
||||||
|
"outputHashing": "all",
|
||||||
|
"budgets": [{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "4mb",
|
||||||
|
"maximumError": "10mb"
|
||||||
|
}]
|
||||||
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"buildOptimizer": false,
|
"buildOptimizer": false,
|
||||||
"optimization": false,
|
"optimization": false,
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
"hmr": "ng s -o --hmr",
|
"hmr": "ng s -o --hmr",
|
||||||
"build": "npm run ng-high-memory build --",
|
"build": "npm run ng-high-memory build --",
|
||||||
"build:dev": "npm run build -- -c dev",
|
"build:dev": "npm run build -- -c dev",
|
||||||
|
"build:test": "npm run build -- -c test",
|
||||||
"analyze": "npm run ng-high-memory build -- --source-map",
|
"analyze": "npm run ng-high-memory build -- --source-map",
|
||||||
"analyze:view": "source-map-explorer dist/**/*.js",
|
"analyze:view": "source-map-explorer dist/**/*.js",
|
||||||
"lint": "npm run lint:ts && npm run lint:style",
|
"lint": "npm run lint:ts && npm run lint:style",
|
||||||
|
|||||||
@ -4,7 +4,7 @@ export const environment = {
|
|||||||
production: true,
|
production: true,
|
||||||
useHash: true,
|
useHash: true,
|
||||||
api: {
|
api: {
|
||||||
baseUrl: 'https://tms-api-test.eascs.com',
|
baseUrl: 'https://tms-api.yunduoxing.com',
|
||||||
refreshTokenEnabled: true,
|
refreshTokenEnabled: true,
|
||||||
refreshTokenType: 'auth-refresh'
|
refreshTokenType: 'auth-refresh'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user