build(devtools): use ng-dev stamp tooling to stamp the latest git SHA in devtools

Previously, we were using ngx-build-plus with a custom webpack config to determine the git SHA at runtime.

Now, after migrating to bazel and transfering to angular/angular, this commit uses ng-dev to stamp the latest git SHA directly in angular devtools' application environment.

This commit also removes the old webpack configs.
This commit is contained in:
AleksanderBodurri
2021-12-01 01:13:17 -05:00
parent e5cdd3397d
commit c24924cbd7
20 changed files with 14 additions and 182 deletions
-6
View File
@@ -73,10 +73,6 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.e2e.ts"
},
{
"replace": "src/app/app.module.ts",
"with": "src/app/app.e2e.module.ts"
}
]
}
@@ -85,7 +81,6 @@
"serve": {
"builder": "ngx-build-plus:dev-server",
"options": {
"extraWebpackConfig": "shell-dev-webpack.config.js",
"browserTarget": "shell-dev:build"
},
"configurations": {
@@ -154,7 +149,6 @@
"builder": "ngx-build-plus:browser",
"options": {
"outputPath": "dist/shell-chrome",
"extraWebpackConfig": "projects/shell-chrome/shell-chrome-webpack.config.js",
"index": "projects/shell-chrome/src/index.html",
"main": "projects/shell-chrome/src/main.ts",
"polyfills": "projects/shell-chrome/src/polyfills.ts",