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"
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
10
package.json
10
package.json
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user