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:
Blair Vanderlugt 2021-04-16 23:18:44 +00:00
commit 5d76217b02
2 changed files with 15 additions and 6 deletions

View File

@ -69,6 +69,14 @@
"maximumError": "10kb" "maximumError": "10kb"
} }
] ]
},
"dev": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
]
} }
} }
}, },
@ -80,6 +88,9 @@
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "cic-staff-client:build:production" "browserTarget": "cic-staff-client:build:production"
},
"dev": {
"browserTarget": "cic-staff-client:build:dev"
} }
} }
}, },

View File

@ -2,15 +2,13 @@
"name": "cic-staff-client", "name": "cic-staff-client",
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng",
"config:dev": "ts-node set-env.ts --environment=dev", "config:dev": "ts-node set-env.ts --environment=dev",
"config:prod": "ts-node set-env.ts --environment=prod", "config:prod": "ts-node set-env.ts --environment=prod",
"start:dev": "npm run config:dev && ng serve", "start:dev": "ng serve -c dev",
"start:prod": "ng serve", "start:prod": "ng serve --prod",
"build:dev": "npm run config:dev && ng build", "build:dev": "ng build -c dev",
"build:prod": "ng build --prod", "build:prod": "ng build --prod",
"test:dev": "npm run config:dev && ng test", "test:dev": "ng test",
"test:prod": "npm run config:prod && ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
"postinstall": "node patch-webpack.js" "postinstall": "node patch-webpack.js"