Merge branch 'dev-env' into 'master'
added dev env and tested with build + serve See merge request grassrootseconomics/cic-staff-client!12
This commit is contained in:
commit
5d76217b02
11
angular.json
11
angular.json
@ -69,6 +69,14 @@
|
||||
"maximumError": "10kb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dev": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.dev.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -80,6 +88,9 @@
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "cic-staff-client:build:production"
|
||||
},
|
||||
"dev": {
|
||||
"browserTarget": "cic-staff-client:build:dev"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
10
package.json
10
package.json
@ -2,15 +2,13 @@
|
||||
"name": "cic-staff-client",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"config:dev": "ts-node set-env.ts --environment=dev",
|
||||
"config:prod": "ts-node set-env.ts --environment=prod",
|
||||
"start:dev": "npm run config:dev && ng serve",
|
||||
"start:prod": "ng serve",
|
||||
"build:dev": "npm run config:dev && ng build",
|
||||
"start:dev": "ng serve -c dev",
|
||||
"start:prod": "ng serve --prod",
|
||||
"build:dev": "ng build -c dev",
|
||||
"build:prod": "ng build --prod",
|
||||
"test:dev": "npm run config:dev && ng test",
|
||||
"test:prod": "npm run config:prod && ng test",
|
||||
"test:dev": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e",
|
||||
"postinstall": "node patch-webpack.js"
|
||||
|
Loading…
Reference in New Issue
Block a user