|
2 | 2 | "name": "mfe1", |
3 | 3 | "$schema": "../../node_modules/nx/schemas/project-schema.json", |
4 | 4 | "projectType": "application", |
| 5 | + "prefix": "mfe1", |
5 | 6 | "sourceRoot": "apps/mfe1/src", |
6 | | - "prefix": "angular-architects", |
| 7 | + "tags": [], |
7 | 8 | "targets": { |
8 | 9 | "build": { |
9 | 10 | "executor": "@angular-architects/native-federation:build", |
| 11 | + "options": {}, |
| 12 | + "configurations": { |
| 13 | + "production": { |
| 14 | + "target": "mfe1:esbuild:production" |
| 15 | + }, |
| 16 | + "development": { |
| 17 | + "target": "mfe1:esbuild:development", |
| 18 | + "dev": true |
| 19 | + } |
| 20 | + }, |
| 21 | + "defaultConfiguration": "production" |
| 22 | + }, |
| 23 | + "serve": { |
| 24 | + "executor": "@angular-architects/native-federation:build", |
| 25 | + "options": { |
| 26 | + "target": "mfe1:serve-original:development", |
| 27 | + "rebuildDelay": 0, |
| 28 | + "dev": true, |
| 29 | + "port": 0 |
| 30 | + } |
| 31 | + }, |
| 32 | + "extract-i18n": { |
| 33 | + "executor": "@angular-devkit/build-angular:extract-i18n", |
| 34 | + "options": { |
| 35 | + "buildTarget": "mfe1:build" |
| 36 | + } |
| 37 | + }, |
| 38 | + "esbuild": { |
| 39 | + "executor": "@angular-devkit/build-angular:application", |
10 | 40 | "outputs": ["{options.outputPath}"], |
11 | 41 | "options": { |
12 | 42 | "outputPath": "dist/apps/mfe1", |
13 | 43 | "index": "apps/mfe1/src/index.html", |
14 | | - "main": "apps/mfe1/src/main.ts", |
15 | | - "polyfills": "apps/mfe1/src/polyfills.ts", |
| 44 | + "browser": "apps/mfe1/src/main.ts", |
| 45 | + "polyfills": ["zone.js", "es-module-shims"], |
16 | 46 | "tsConfig": "apps/mfe1/tsconfig.app.json", |
17 | 47 | "assets": ["apps/mfe1/src/favicon.ico", "apps/mfe1/src/assets"], |
18 | 48 | "styles": ["apps/mfe1/src/styles.css"], |
|
32 | 62 | "maximumError": "4kb" |
33 | 63 | } |
34 | 64 | ], |
35 | | - "fileReplacements": [ |
36 | | - { |
37 | | - "replace": "apps/mfe1/src/environments/environment.ts", |
38 | | - "with": "apps/mfe1/src/environments/environment.prod.ts" |
39 | | - } |
40 | | - ], |
41 | 65 | "outputHashing": "all" |
42 | 66 | }, |
43 | 67 | "development": { |
44 | | - "buildOptimizer": false, |
45 | 68 | "optimization": false, |
46 | | - "vendorChunk": true, |
47 | 69 | "extractLicenses": false, |
48 | | - "sourceMap": true, |
49 | | - "namedChunks": true |
| 70 | + "sourceMap": true |
50 | 71 | } |
51 | 72 | }, |
52 | 73 | "defaultConfiguration": "production" |
53 | 74 | }, |
54 | | - "serve": { |
| 75 | + "serve-original": { |
55 | 76 | "executor": "@angular-devkit/build-angular:dev-server", |
| 77 | + "options": { |
| 78 | + "port": 4201 |
| 79 | + }, |
56 | 80 | "configurations": { |
57 | 81 | "production": { |
58 | | - "buildTarget": "mfe1:build:production" |
| 82 | + "buildTarget": "mfe1:esbuild:production" |
59 | 83 | }, |
60 | 84 | "development": { |
61 | | - "buildTarget": "mfe1:build:development" |
| 85 | + "buildTarget": "mfe1:esbuild:development" |
62 | 86 | } |
63 | 87 | }, |
64 | 88 | "defaultConfiguration": "development" |
65 | | - }, |
66 | | - "extract-i18n": { |
67 | | - "executor": "@angular-devkit/build-angular:extract-i18n", |
68 | | - "options": { |
69 | | - "buildTarget": "mfe1:build" |
70 | | - } |
71 | | - }, |
72 | | - "lint": { |
73 | | - "executor": "@nx/eslint:lint", |
74 | | - "options": { |
75 | | - "lintFilePatterns": ["apps/mfe1/**/*.ts", "apps/mfe1/**/*.html"] |
76 | | - } |
77 | | - }, |
78 | | - "test": { |
79 | | - "executor": "@nx/jest:jest", |
80 | | - "outputs": ["{workspaceRoot}/coverage/apps/mfe1"], |
81 | | - "options": { |
82 | | - "jestConfig": "apps/mfe1/jest.config.ts" |
83 | | - } |
84 | 89 | } |
85 | | - }, |
86 | | - "tags": [] |
| 90 | + } |
87 | 91 | } |
0 commit comments