diff --git a/angular.json b/angular.json index f916d4f..b6ab55a 100644 --- a/angular.json +++ b/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" } } }, diff --git a/package.json b/package.json index f939f7a..ff0c292 100644 --- a/package.json +++ b/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"