File tree Expand file tree Collapse file tree 12 files changed +7679
-21630
lines changed
Expand file tree Collapse file tree 12 files changed +7679
-21630
lines changed Original file line number Diff line number Diff 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] ;
Original file line number Diff line number Diff line change 11{
2- "remote-a" : " http://B:indetifier@version " ,
2+ "remote-a" : " http://localhost:4201 " ,
33 "remote-b" : " http://localhost:4202"
44}
Original file line number Diff line number Diff line change 11// STATIC FEDERATION
2- // import'./bootstrap';
2+ // import( './bootstrap').catch(err => console.error(err)) ;
33
44// DYNAMIC FEDERATION
55import { setRemoteDefinitions } from '@nx/angular/mf' ;
Original file line number Diff line number Diff line change 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}" ],
Original file line number Diff line number Diff line change 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}" ],
Original file line number Diff line number Diff line change 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}" ],
Original file line number Diff line number Diff line change 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}" ],
Original file line number Diff line number Diff line change 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}" ],
Original file line number Diff line number Diff line change 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}" ],
Original file line number Diff line number Diff line change 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}" ],
You can’t perform that action at this time.
0 commit comments