Ajout et mise à jour de configuration d'environnement (local et development)
This commit is contained in:
+26
-6
@@ -68,12 +68,12 @@
|
||||
]
|
||||
},
|
||||
"development": {
|
||||
"optimization": true,
|
||||
"sourceMap": false,
|
||||
"namedChunks": false,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"optimization": false,
|
||||
"sourceMap": true,
|
||||
"namedChunks": true,
|
||||
"extractLicenses": false,
|
||||
"vendorChunk": true,
|
||||
"buildOptimizer": false,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
@@ -86,6 +86,26 @@
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"local": {
|
||||
"optimization": false,
|
||||
"sourceMap": true,
|
||||
"namedChunks": true,
|
||||
"extractLicenses": false,
|
||||
"vendorChunk": true,
|
||||
"buildOptimizer": false,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.local.ts"
|
||||
}
|
||||
],
|
||||
"budgets": [
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
|
||||
+3
-1
@@ -3,9 +3,11 @@
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"start": "ng serve --configuration development",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"local": "ng build --watch --configuration local",
|
||||
"lint": "ng lint",
|
||||
"test": "ng test"
|
||||
},
|
||||
"private": true,
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
export const environment = {
|
||||
production:<boolean> false,
|
||||
api_url:<string> 'http://localhost:3200/api', //'https://api.rampeur.com/api'
|
||||
api_key:<string> '9f5a9b80a39b4788be2f12941b766aba',
|
||||
use_api_key:<boolean> true,
|
||||
refresh_interval:<number> 30000,
|
||||
couchdbUrl:<string> 'http://couchdb.unespace.com',
|
||||
couchdbDatabase:<string> 'headupdb',
|
||||
couchdbDesign:<string> 'headup_app',
|
||||
couchdbCredential:<string> 'cmFtcGV1cjpES3hwMjRQUw=='
|
||||
};
|
||||
Reference in New Issue
Block a user