Skip to content

Commit

Permalink
Feature/angular 18 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainGlac1er authored Jul 5, 2024
1 parent f7f5ea0 commit 68989bd
Show file tree
Hide file tree
Showing 21 changed files with 2,103 additions and 1,987 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ COPY --from=builder /project/dist /project/dist
COPY ./package*.json /project/
WORKDIR /project
RUN npm ci --only=prod --quiet --no-progress
CMD ["node", "dist/server/main"]
WORKDIR /project/dist
CMD ["node", "server/server.mjs"]
94 changes: 14 additions & 80 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
"sourceRoot": "src",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/browser",
"outputPath": {
"base": "dist"
},
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"polyfills": [
"src/polyfills.ts"
],
"assets": [
{
"glob": "**/*",
Expand All @@ -32,12 +35,16 @@
"src/styles.scss"
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"namedChunks": true,
"browser": "src/main.ts",
"server": "src/main.server.ts",
"prerender": true,
"ssr": {
"entry": "server.ts"
}
},
"configurations": {
"production": {
Expand All @@ -52,7 +59,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
Expand All @@ -72,7 +78,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
Expand Down Expand Up @@ -186,77 +191,6 @@
}
]
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json",
"sourceMap": true,
"optimization": false,
"buildOptimizer": false
},
"configurations": {
"production": {
"optimization": true,
"sourceMap": false,
"namedChunks": false,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"buildOptimizer": true
},
"staging": {
"namedChunks": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.beta.ts"
}
]
},
"development": {
"vendorChunk": true
}
},
"defaultConfiguration": "production"
},
"serve-ssr": {
"builder": "@angular-devkit/build-angular:ssr-dev-server",
"configurations": {
"development": {
"browserTarget": "angular-georgecolgrove:build:development",
"serverTarget": "angular-georgecolgrove:server:development"
},
"production": {
"browserTarget": "angular-georgecolgrove:build:production",
"serverTarget": "angular-georgecolgrove:server:production"
}
},
"defaultConfiguration": "development"
},
"prerender": {
"builder": "@angular-devkit/build-angular:prerender",
"options": {
"routes": [
"/"
]
},
"configurations": {
"production": {
"browserTarget": "angular-georgecolgrove:build:production",
"serverTarget": "angular-georgecolgrove:server:production"
},
"development": {
"browserTarget": "angular-georgecolgrove:build:development",
"serverTarget": "angular-georgecolgrove:server:development"
}
},
"defaultConfiguration": "production"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion beta.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ COPY --from=builder /project/dist /project/dist
COPY ./package*.json /project/
WORKDIR /project
RUN npm ci --only=prod --quiet --no-progress
CMD ["node", "dist/server/main"]
WORKDIR /project/dist
CMD ["node", "server/server.mjs"]
Loading

0 comments on commit 68989bd

Please sign in to comment.