Skip to content

Commit

Permalink
docs(examples/angular): Use new default application builder in Angula…
Browse files Browse the repository at this point in the history
…r example
  • Loading branch information
PSanetra committed Aug 6, 2024
1 parent a776964 commit 01e47f6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 74 deletions.
2 changes: 1 addition & 1 deletion examples/angular/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ COPY ./default-config.yaml /config/default.yaml
# Usually we would mount this file at runtime, but we will add it to the image for demo purposes.
COPY ./runtime-config.yaml /config/config.yaml

COPY --from=build /src/dist/angular-example/ /app/
COPY --from=build /src/dist/angular-example/browser/ /app/
10 changes: 4 additions & 6 deletions examples/angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/angular-example",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"browser": "src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
Expand All @@ -51,8 +51,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand Down Expand Up @@ -90,7 +88,7 @@
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
Expand Down
63 changes: 0 additions & 63 deletions examples/angular/src/polyfills.ts

This file was deleted.

3 changes: 1 addition & 2 deletions examples/angular/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"types": []
},
"files": [
"src/main.ts",
"src/polyfills.ts"
"src/main.ts"
],
"include": [
"src/**/*.d.ts"
Expand Down
3 changes: 1 addition & 2 deletions examples/angular/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
]
},
"files": [
"src/test.ts",
"src/polyfills.ts"
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
Expand Down

0 comments on commit 01e47f6

Please sign in to comment.