is it possible to use an array for workspaceLayout.appsDir? #4907
Replies: 7 comments
-
I don't see the need for this. You can have a grouping folder to separate them up. |
Beta Was this translation helpful? Give feedback.
-
Yes, @Jordan-Hall, we can group folders, but I want to group at the root level.
If I import one feature-module library then the import will be I feel is not good to deep import with 4 or 5 levels, we can reduce one level by creating a group at the root. |
Beta Was this translation helpful? Give feedback.
-
So im working on a project thats huge too. You don't need to have huge import paths. We still shorten it down and not treat the path level the same as the import path using --importPath. |
Beta Was this translation helpful? Give feedback.
-
They are also used in some aux fashion to make sure you don't have any files not belonging to a lib etc, but that's not essential. This means that you could generate a new lib and just manually move to any other place and then update workspace.json and tsconfig.base.json. Everything will work fine after that. The libraries don't have to be located in libsDir. This is Option 1. Option 2 is to point both appsDir and libsDir to the same dir, say: When it comes to an extra level of nesting adding an extra segment in the import: The root tsconfig.base.json defines how libs are resolved. So you can have a lib located at So you have a few options. The reason I'm not keen on having them as array is that it will force users to choose which one. So they will have to provide |
Beta Was this translation helpful? Give feedback.
-
@vsavkin and @Jordan-Hall Thanks for your guidance. Yes, we can use Might be my approach creates confusion for the developer. Suppose we are building a todo application then we will have the following libs,
While importing we will skip the first level and start with the second level with organizations. Like So, In both cases, we have to use A defined approach is good we can create different folders and use
|
Beta Was this translation helpful? Give feedback.
-
I have a root-level directory of microservices (firebase functions) that are conceptually distinct from an Is there a way I can do this and avoid the module boundaries error? P.S. I understand that I'm importing the microservices dependencies into my app but I prefer that over the disorganization/complexity of maintaining the API interfaces elsewhere. |
Beta Was this translation helpful? Give feedback.
-
If you're dealing with a relative small monorepo (2 apps), it would be nice to place them both at root level. Like a standalone repo but with 2 apps 😉 Defining an array of apps could solve that. |
Beta Was this translation helpful? Give feedback.
-
@Bulletninja Suggestion is good.
With this, we can manage
like :
Beta Was this translation helpful? Give feedback.
All reactions