|
7 | 7 | "tags": [],
|
8 | 8 | "targets": {
|
9 | 9 | "build": {
|
10 |
| - "executor": "@angular-devkit/build-angular:browser-esbuild", |
| 10 | + "executor": "@angular-devkit/build-angular:application", |
11 | 11 | "outputs": ["{options.outputPath}"],
|
12 | 12 | "options": {
|
13 |
| - "outputPath": "dist/apps/web/browser/browser", |
| 13 | + "outputPath": "dist/apps/web", |
14 | 14 | "index": "apps/web/src/index.html",
|
15 |
| - "main": "apps/web/src/main.ts", |
| 15 | + "browser": "apps/web/src/main.ts", |
16 | 16 | "polyfills": ["zone.js"],
|
17 | 17 | "tsConfig": "apps/web/tsconfig.app.json",
|
18 | 18 | "assets": ["apps/web/src/favicon.ico", "apps/web/src/assets"],
|
|
21 | 21 | "apps/web/src/styles/variables.css",
|
22 | 22 | "apps/web/src/styles.css"
|
23 | 23 | ],
|
24 |
| - "scripts": [] |
| 24 | + "scripts": [], |
| 25 | + "server": "apps/web/src/main.server.ts", |
| 26 | + "prerender": true, |
| 27 | + "ssr": { |
| 28 | + "entry": "apps/web/server.ts" |
| 29 | + } |
25 | 30 | },
|
26 | 31 | "configurations": {
|
27 | 32 | "production": {
|
|
40 | 45 | "outputHashing": "all"
|
41 | 46 | },
|
42 | 47 | "development": {
|
43 |
| - "buildOptimizer": false, |
44 | 48 | "optimization": false,
|
45 |
| - "vendorChunk": true, |
46 | 49 | "extractLicenses": false,
|
47 |
| - "sourceMap": true, |
48 |
| - "namedChunks": true |
| 50 | + "sourceMap": true |
49 | 51 | }
|
50 | 52 | },
|
51 | 53 | "defaultConfiguration": "production"
|
|
54 | 56 | "executor": "@angular-devkit/build-angular:dev-server",
|
55 | 57 | "configurations": {
|
56 | 58 | "production": {
|
57 |
| - "browserTarget": "web:build:production" |
| 59 | + "buildTarget": "web:build:production" |
58 | 60 | },
|
59 | 61 | "development": {
|
60 |
| - "browserTarget": "web:build:development" |
| 62 | + "buildTarget": "web:build:development" |
61 | 63 | }
|
62 | 64 | },
|
63 | 65 | "defaultConfiguration": "development"
|
64 | 66 | },
|
65 | 67 | "extract-i18n": {
|
66 | 68 | "executor": "@angular-devkit/build-angular:extract-i18n",
|
67 | 69 | "options": {
|
68 |
| - "browserTarget": "web:build" |
| 70 | + "buildTarget": "web:build" |
69 | 71 | }
|
70 | 72 | },
|
71 | 73 | "lint": {
|
72 |
| - "executor": "@nx/linter:eslint", |
| 74 | + "executor": "@nx/eslint:lint", |
73 | 75 | "outputs": ["{options.outputFile}"],
|
74 | 76 | "options": {
|
75 | 77 | "lintFilePatterns": ["apps/web/**/*.ts", "apps/web/**/*.html"]
|
|
79 | 81 | "executor": "@nx/jest:jest",
|
80 | 82 | "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
81 | 83 | "options": {
|
82 |
| - "jestConfig": "apps/web/jest.config.ts", |
83 |
| - "passWithNoTests": true |
84 |
| - }, |
85 |
| - "configurations": { |
86 |
| - "ci": { |
87 |
| - "ci": true, |
88 |
| - "codeCoverage": true |
89 |
| - } |
| 84 | + "jestConfig": "apps/web/jest.config.ts" |
90 | 85 | }
|
91 |
| - }, |
92 |
| - "server": { |
93 |
| - "dependsOn": ["build"], |
94 |
| - "executor": "@angular-devkit/build-angular:server", |
95 |
| - "options": { |
96 |
| - "outputPath": "dist/apps/web/browser/server", |
97 |
| - "main": "apps/web/server.ts", |
98 |
| - "tsConfig": "apps/web/tsconfig.server.json" |
99 |
| - }, |
100 |
| - "configurations": { |
101 |
| - "production": { |
102 |
| - "outputHashing": "media" |
103 |
| - }, |
104 |
| - "development": { |
105 |
| - "buildOptimizer": false, |
106 |
| - "optimization": false, |
107 |
| - "sourceMap": true, |
108 |
| - "extractLicenses": false, |
109 |
| - "vendorChunk": true |
110 |
| - } |
111 |
| - }, |
112 |
| - "defaultConfiguration": "production" |
113 |
| - }, |
114 |
| - "serve-ssr": { |
115 |
| - "executor": "@nguniversal/builders:ssr-dev-server", |
116 |
| - "configurations": { |
117 |
| - "development": { |
118 |
| - "browserTarget": "web:build:development", |
119 |
| - "serverTarget": "web:server:development" |
120 |
| - }, |
121 |
| - "production": { |
122 |
| - "browserTarget": "web:build:production", |
123 |
| - "serverTarget": "web:server:production" |
124 |
| - } |
125 |
| - }, |
126 |
| - "defaultConfiguration": "development" |
127 |
| - }, |
128 |
| - "prerender": { |
129 |
| - "executor": "@nguniversal/builders:prerender", |
130 |
| - "options": { |
131 |
| - "routes": ["/"] |
132 |
| - }, |
133 |
| - "configurations": { |
134 |
| - "development": { |
135 |
| - "browserTarget": "web:build:development", |
136 |
| - "serverTarget": "web:server:development" |
137 |
| - }, |
138 |
| - "production": { |
139 |
| - "browserTarget": "web:build:production", |
140 |
| - "serverTarget": "web:server:production" |
141 |
| - } |
142 |
| - }, |
143 |
| - "defaultConfiguration": "production" |
144 | 86 | }
|
145 | 87 | }
|
146 | 88 | }
|
0 commit comments