-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nx 16.8.0+ no longer automatically adds the 'apps' or 'libs' prefix for app/lib generators #180
Comments
Well, i don't exactly understand how it worked before and what the expected result, but right now with Nx 16.10.0 it's not possible to override "app" in the path in any way.
Where expected result would be:
The same is true for generating firebase app as well |
Update: it seems NX trying to be smart and do some heuristic over the monorepo. So if you have "app" folder it will create new applications in here. So my previous report valid only if you already have apps / libs folder created. |
Ok I'm going to close this. My plugin compatibility tests seem ok with Nx versions >=16.8.1 |
Re-opening this.
It doesnt help that the e2e project setup is somewhat opaque about what defaults it sets in the Previous versions of Nx, plugins could just infer the target folder from workspace layout Hopefully theres some tooling for this in |
@thekip I believe there's some fangled new configs in "workspaceLayout": {
"projectNameAndRootFormat": "derived",
"appsDir": "apps",
"libsDir": "libs"
}, 🤔 |
The default "workspaceLayout": {
"projectNameAndRootFormat": "as-provided"
}, I'll probably need to add some e2e tests to make sure we've got functional coverage for all the different workspace variants. |
This is now implemented in #205 |
See https://nx.dev/deprecated/as-provided-vs-derived
For Nx 17, there are migration options for derived names, but they say from Nx 18 it will be as-provided only.
Apparently we have to provide
--directory
for workspace structure ourselves now.Anyone finding this a problem with their projects?
I'm testing the plugin at the moment, and e2e tests are failing but I think the plugin should work ok with this new Nx change, just need to see if the documentation for the plugin may need updating to reflect this.
The text was updated successfully, but these errors were encountered: