Ajout et mise à jour de configuration d'environnement (local et development)
This commit is contained in:
+26
-6
@@ -68,12 +68,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"optimization": true,
|
"optimization": false,
|
||||||
"sourceMap": false,
|
"sourceMap": true,
|
||||||
"namedChunks": false,
|
"namedChunks": true,
|
||||||
"extractLicenses": true,
|
"extractLicenses": false,
|
||||||
"vendorChunk": false,
|
"vendorChunk": true,
|
||||||
"buildOptimizer": true,
|
"buildOptimizer": false,
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
{
|
{
|
||||||
"replace": "src/environments/environment.ts",
|
"replace": "src/environments/environment.ts",
|
||||||
@@ -86,6 +86,26 @@
|
|||||||
"maximumWarning": "6kb"
|
"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"
|
"defaultConfiguration": "production"
|
||||||
|
|||||||
+3
-1
@@ -3,9 +3,11 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve --configuration development",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"watch": "ng build --watch --configuration development",
|
"watch": "ng build --watch --configuration development",
|
||||||
|
"local": "ng build --watch --configuration local",
|
||||||
|
"lint": "ng lint",
|
||||||
"test": "ng test"
|
"test": "ng test"
|
||||||
},
|
},
|
||||||
"private": true,
|
"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