Support for Nx monorepo setup #73
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
What is this feature?
When developing in a nx.dev monorepo setup the following setup is quite normal: An app has two (lazy loading) feature modules mounted:
BooksModule
mounted underbooks
OrdersModule
mounted underorders
In a loosely coupled way, both features contain components that point to components of the other feature. For example,
books
has a routerLink pointing toorders/new
andorders/{orderId}
has a routerLink which points tobooks/{bookId}
.One of the advantages of using nx.dev is that libraries (the feature modules) can be reused in multiple apps. Currently RouterKit supports generating routes based upon an Angular app, resulting in
{ROOT}/{APP_NAME}.routes.d.ts
. Referencing the routes created from app 'A' in a feature lib is actually putting the dependency the wrong way around. From the internal dependency graph which the nx.dev tooling creates for you, app 'A' is using the feature lib. With the (described below) new features RouterKit can (probably) be used in a nx-dev monorepo setup.How the feature should work?
I think the following is needed so RouterKit can be used in a nx-dev monorepo setup:
Can't find file with relative path @my-solution/app/feature/feature.module.ts
)Is your feature request related to a problem?
Yes, it's described in issue #49.
The text was updated successfully, but these errors were encountered: