Skip to content

Commit dbc493a

Browse files
committed
feat(nf): support angular 16.1
1 parent 2f45a94 commit dbc493a

File tree

26 files changed

+16946
-10089
lines changed

26 files changed

+16946
-10089
lines changed

angular.json

Lines changed: 0 additions & 598 deletions
This file was deleted.

apps/mfe1-e2e/project.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "mfe1-e2e",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "apps/mfe1-e2e/src",
5+
"projectType": "application",
6+
"targets": {
7+
"e2e": {
8+
"executor": "@nrwl/cypress:cypress",
9+
"options": {
10+
"cypressConfig": "apps/mfe1-e2e/cypress.json",
11+
"devServerTarget": "mfe1:serve:development",
12+
"testingType": "e2e",
13+
"tsConfig": "apps/mfe1-e2e/tsconfig.json"
14+
},
15+
"configurations": {
16+
"production": {
17+
"devServerTarget": "mfe1:serve:production"
18+
}
19+
}
20+
},
21+
"lint": {
22+
"executor": "@nrwl/linter:eslint",
23+
"outputs": ["{options.outputFile}"],
24+
"options": {
25+
"lintFilePatterns": ["apps/mfe1-e2e/**/*.{js,ts}"]
26+
}
27+
}
28+
},
29+
"tags": [],
30+
"implicitDependencies": ["mfe1"]
31+
}

apps/mfe1/project.json

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

apps/mfe2-e2e/project.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "mfe2-e2e",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "apps/mfe2-e2e/src",
5+
"projectType": "application",
6+
"targets": {
7+
"e2e": {
8+
"executor": "@nrwl/cypress:cypress",
9+
"options": {
10+
"cypressConfig": "apps/mfe2-e2e/cypress.json",
11+
"devServerTarget": "mfe2:serve:development",
12+
"testingType": "e2e",
13+
"tsConfig": "apps/mfe2-e2e/tsconfig.json"
14+
},
15+
"configurations": {
16+
"production": {
17+
"devServerTarget": "mfe2:serve:production"
18+
}
19+
}
20+
},
21+
"lint": {
22+
"executor": "@nrwl/linter:eslint",
23+
"outputs": ["{options.outputFile}"],
24+
"options": {
25+
"lintFilePatterns": ["apps/mfe2-e2e/**/*.{js,ts}"]
26+
}
27+
}
28+
},
29+
"tags": [],
30+
"implicitDependencies": ["mfe2"]
31+
}

apps/mfe2/project.json

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

apps/native-federation-e2e/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "native-federation-e2e",
23
"$schema": "../../node_modules/nx/schemas/project-schema.json",
34
"projectType": "application",
45
"sourceRoot": "apps/native-federation-e2e/src",

apps/playground-e2e/project.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "playground-e2e",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "apps/playground-e2e/src",
5+
"projectType": "application",
6+
"targets": {
7+
"e2e": {
8+
"executor": "@nrwl/cypress:cypress",
9+
"options": {
10+
"cypressConfig": "apps/playground-e2e/cypress.json",
11+
"tsConfig": "apps/playground-e2e/tsconfig.e2e.json",
12+
"devServerTarget": "playground:serve:development"
13+
},
14+
"configurations": {
15+
"production": {
16+
"devServerTarget": "playground:serve:production"
17+
}
18+
}
19+
},
20+
"lint": {
21+
"executor": "@nrwl/linter:eslint",
22+
"options": {
23+
"lintFilePatterns": ["apps/playground-e2e/**/*.{js,ts}"]
24+
},
25+
"outputs": ["{options.outputFile}"]
26+
}
27+
},
28+
"tags": [],
29+
"implicitDependencies": ["playground"]
30+
}

apps/playground/project.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"name": "playground",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "application",
5+
"sourceRoot": "apps/playground/src",
6+
"prefix": "angular-architects",
7+
"targets": {
8+
"demo": {
9+
"executor": "@angular-architects/native-federation:build",
10+
"options": {},
11+
"configurations": {}
12+
},
13+
"build": {
14+
"executor": "@angular-architects/native-federation:build",
15+
"options": {
16+
"outputPath": "dist/apps/playground",
17+
"index": "apps/playground/src/index.html",
18+
"main": "apps/playground/src/main.ts",
19+
"polyfills": "apps/playground/src/polyfills.ts",
20+
"tsConfig": "apps/playground/tsconfig.app.json",
21+
"assets": [
22+
"apps/playground/src/favicon.ico",
23+
"apps/playground/src/assets"
24+
],
25+
"styles": ["apps/playground/src/styles.css"],
26+
"scripts": []
27+
},
28+
"configurations": {
29+
"production": {
30+
"budgets": [
31+
{
32+
"type": "initial",
33+
"maximumWarning": "500kb",
34+
"maximumError": "1mb"
35+
},
36+
{
37+
"type": "anyComponentStyle",
38+
"maximumWarning": "2kb",
39+
"maximumError": "4kb"
40+
}
41+
],
42+
"fileReplacements": [
43+
{
44+
"replace": "apps/playground/src/environments/environment.ts",
45+
"with": "apps/playground/src/environments/environment.prod.ts"
46+
}
47+
],
48+
"outputHashing": "all"
49+
},
50+
"development": {
51+
"buildOptimizer": false,
52+
"optimization": false,
53+
"vendorChunk": true,
54+
"extractLicenses": false,
55+
"sourceMap": true,
56+
"namedChunks": true
57+
}
58+
},
59+
"defaultConfiguration": "production"
60+
},
61+
"serve": {
62+
"executor": "@angular-devkit/build-angular:dev-server",
63+
"configurations": {
64+
"production": {
65+
"browserTarget": "playground:build:production"
66+
},
67+
"development": {
68+
"browserTarget": "playground:build:development"
69+
}
70+
},
71+
"defaultConfiguration": "development"
72+
},
73+
"extract-i18n": {
74+
"executor": "@angular-devkit/build-angular:extract-i18n",
75+
"options": {
76+
"browserTarget": "playground:build"
77+
}
78+
},
79+
"lint": {
80+
"executor": "@nrwl/linter:eslint",
81+
"options": {
82+
"lintFilePatterns": [
83+
"apps/playground/src/**/*.ts",
84+
"apps/playground/src/**/*.html"
85+
]
86+
},
87+
"outputs": ["{options.outputFile}"]
88+
},
89+
"test": {
90+
"executor": "@nrwl/jest:jest",
91+
"outputs": ["coverage/apps/playground"],
92+
"options": {
93+
"jestConfig": "apps/playground/jest.config.ts",
94+
"passWithNoTests": true
95+
}
96+
}
97+
},
98+
"tags": []
99+
}

0 commit comments

Comments
 (0)