Skip to content

Commit ab705fa

Browse files
committed
fix: remove buildable libs to fix serve
- improve static / dynamic setup
1 parent 48f63fa commit ab705fa

File tree

12 files changed

+7679
-21630
lines changed

12 files changed

+7679
-21630
lines changed

apps/host-example/src/app/app.routes.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export const appRoutes: Route[] = [
77
pathMatch: 'full',
88
redirectTo: 'remote-a',
99
},
10+
11+
// DYNAMIC FEDERATION
1012
{
1113
path: 'dashboard',
1214
loadChildren: () =>
@@ -21,7 +23,6 @@ export const appRoutes: Route[] = [
2123
'@angular-experts/host-example/feature/dashboard-with-subroutes'
2224
).then((m) => m.hostExampleFeatureDashboardWithSubroutesRoutes),
2325
},
24-
// DYNAMIC FEDERATION
2526
{
2627
path: 'remote-a',
2728
loadChildren: () =>
@@ -37,11 +38,11 @@ export const appRoutes: Route[] = [
3738
// {
3839
// path: 'remote-a',
3940
// loadChildren: () =>
40-
// import('@angular-experts/remote-a/feature/a').then((m) => m.remoteAFeatureARoutes),
41+
// import('remote-a/Routes').then((m) => m.remoteRoutes),
4142
// },
4243
// {
4344
// path: 'remote-b',
4445
// loadChildren: () =>
45-
// import('@angular-experts/remote-b/feature/b').then((m) => m.remoteBFeatureBRoutes),
46+
// import('remote-b/Routes').then((m) => m.remoteRoutes),
4647
// },
4748
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"remote-a": "http://B:indetifier@version",
2+
"remote-a": "http://localhost:4201",
33
"remote-b": "http://localhost:4202"
44
}

apps/host-example/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// STATIC FEDERATION
2-
// import'./bootstrap';
2+
// import('./bootstrap').catch(err => console.error(err));
33

44
// DYNAMIC FEDERATION
55
import { setRemoteDefinitions } from '@nx/angular/mf';

libs/host-example/feature/dashboard-with-subroutes/project.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"tags": [],
77
"projectType": "library",
88
"targets": {
9-
"build": {
10-
"executor": "@nx/angular:ng-packagr-lite",
11-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12-
"options": {
13-
"project": "libs/host-example/feature/dashboard-with-subroutes/ng-package.json",
14-
"tailwindConfig": "libs/host-example/feature/dashboard-with-subroutes/tailwind.config.js"
15-
},
16-
"configurations": {
17-
"production": {
18-
"tsConfig": "libs/host-example/feature/dashboard-with-subroutes/tsconfig.lib.prod.json"
19-
},
20-
"development": {
21-
"tsConfig": "libs/host-example/feature/dashboard-with-subroutes/tsconfig.lib.json"
22-
}
23-
},
24-
"defaultConfiguration": "production"
25-
},
269
"test": {
2710
"executor": "@nx/jest:jest",
2811
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/host-example/feature/dashboard/project.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"tags": [],
77
"projectType": "library",
88
"targets": {
9-
"build": {
10-
"executor": "@nx/angular:ng-packagr-lite",
11-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12-
"options": {
13-
"project": "libs/host-example/feature/dashboard/ng-package.json",
14-
"tailwindConfig": "libs/host-example/feature/dashboard/tailwind.config.js"
15-
},
16-
"configurations": {
17-
"production": {
18-
"tsConfig": "libs/host-example/feature/dashboard/tsconfig.lib.prod.json"
19-
},
20-
"development": {
21-
"tsConfig": "libs/host-example/feature/dashboard/tsconfig.lib.json"
22-
}
23-
},
24-
"defaultConfiguration": "production"
25-
},
269
"test": {
2710
"executor": "@nx/jest:jest",
2811
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/remote-a/feature/a/project.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"tags": [],
77
"projectType": "library",
88
"targets": {
9-
"build": {
10-
"executor": "@nx/angular:ng-packagr-lite",
11-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12-
"options": {
13-
"project": "libs/remote-a/feature/a/ng-package.json",
14-
"tailwindConfig": "libs/remote-a/feature/a/tailwind.config.js"
15-
},
16-
"configurations": {
17-
"production": {
18-
"tsConfig": "libs/remote-a/feature/a/tsconfig.lib.prod.json"
19-
},
20-
"development": {
21-
"tsConfig": "libs/remote-a/feature/a/tsconfig.lib.json"
22-
}
23-
},
24-
"defaultConfiguration": "production"
25-
},
269
"test": {
2710
"executor": "@nx/jest:jest",
2811
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/remote-a/feature/a1/project.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"tags": [],
77
"projectType": "library",
88
"targets": {
9-
"build": {
10-
"executor": "@nx/angular:ng-packagr-lite",
11-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12-
"options": {
13-
"project": "libs/remote-a/feature/a1/ng-package.json",
14-
"tailwindConfig": "libs/remote-a/feature/a1/tailwind.config.js"
15-
},
16-
"configurations": {
17-
"production": {
18-
"tsConfig": "libs/remote-a/feature/a1/tsconfig.lib.prod.json"
19-
},
20-
"development": {
21-
"tsConfig": "libs/remote-a/feature/a1/tsconfig.lib.json"
22-
}
23-
},
24-
"defaultConfiguration": "production"
25-
},
269
"test": {
2710
"executor": "@nx/jest:jest",
2811
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/remote-b/feature/b/project.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"tags": [],
77
"projectType": "library",
88
"targets": {
9-
"build": {
10-
"executor": "@nx/angular:ng-packagr-lite",
11-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12-
"options": {
13-
"project": "libs/remote-b/feature/b/ng-package.json",
14-
"tailwindConfig": "libs/remote-b/feature/b/tailwind.config.js"
15-
},
16-
"configurations": {
17-
"production": {
18-
"tsConfig": "libs/remote-b/feature/b/tsconfig.lib.prod.json"
19-
},
20-
"development": {
21-
"tsConfig": "libs/remote-b/feature/b/tsconfig.lib.json"
22-
}
23-
},
24-
"defaultConfiguration": "production"
25-
},
269
"test": {
2710
"executor": "@nx/jest:jest",
2811
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/shared/ui/dummy/project.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"tags": [],
77
"projectType": "library",
88
"targets": {
9-
"build": {
10-
"executor": "@nx/angular:ng-packagr-lite",
11-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12-
"options": {
13-
"project": "libs/shared/ui/dummy/ng-package.json",
14-
"tailwindConfig": "libs/shared/ui/dummy/tailwind.config.js"
15-
},
16-
"configurations": {
17-
"production": {
18-
"tsConfig": "libs/shared/ui/dummy/tsconfig.lib.prod.json"
19-
},
20-
"development": {
21-
"tsConfig": "libs/shared/ui/dummy/tsconfig.lib.json"
22-
}
23-
},
24-
"defaultConfiguration": "production"
25-
},
269
"test": {
2710
"executor": "@nx/jest:jest",
2811
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/shared/ui/mf-loader/project.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"tags": [],
77
"projectType": "library",
88
"targets": {
9-
"build": {
10-
"executor": "@nx/angular:ng-packagr-lite",
11-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12-
"options": {
13-
"project": "libs/shared/ui/mf-loader/ng-package.json",
14-
"tailwindConfig": "libs/shared/ui/mf-loader/tailwind.config.js"
15-
},
16-
"configurations": {
17-
"production": {
18-
"tsConfig": "libs/shared/ui/mf-loader/tsconfig.lib.prod.json"
19-
},
20-
"development": {
21-
"tsConfig": "libs/shared/ui/mf-loader/tsconfig.lib.json"
22-
}
23-
},
24-
"defaultConfiguration": "production"
25-
},
269
"test": {
2710
"executor": "@nx/jest:jest",
2811
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

0 commit comments

Comments
 (0)