Skip to content

Commit

Permalink
docs: Upgrade angular example to Angular 18 and add example routes
Browse files Browse the repository at this point in the history
  • Loading branch information
PSanetra committed Aug 6, 2024
1 parent da1b7ae commit cc26bb9
Show file tree
Hide file tree
Showing 16 changed files with 11,595 additions and 10,805 deletions.
8 changes: 6 additions & 2 deletions examples/angular/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/dist
/node_modules
dist
node_modules
Dockerfile
.angular
.idea
.vscode
13 changes: 7 additions & 6 deletions examples/angular/.gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
dist
tmp
out-tsc
.angular
# Only exists if Bazel was run
/bazel-out
bazel-out

# dependencies
/node_modules
node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

# IDEs and editors
/.idea
.idea
.project
.classpath
.c9/
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12-alpine as build
FROM node:20-alpine as build

WORKDIR /src

Expand Down
13 changes: 9 additions & 4 deletions examples/angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"cli": {
"analytics": false,
"packageManager": "npm"
},
"projects": {
"angular-example": {
"projectType": "application",
Expand Down Expand Up @@ -35,6 +39,7 @@
},
"configurations": {
"production": {
"aot": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
Expand All @@ -44,7 +49,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand All @@ -62,7 +66,8 @@
}
]
}
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -111,6 +116,6 @@
}
}
}
}},
"defaultProject": "angular-example"
}
}
}
Loading

0 comments on commit cc26bb9

Please sign in to comment.