added dev env and tested with build + serve

This commit is contained in:
Blair Vanderlugt 2021-04-13 16:29:31 -07:00
parent 8395946024
commit c56111d732
2 changed files with 15 additions and 6 deletions

View File

@ -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"
}
}
},

View File

@ -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"