-
Notifications
You must be signed in to change notification settings - Fork 57
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
Feature Request > generate non-publishable libraries #9
Comments
Hi Pascal, yes, you are right. It currently always creates publishable libs. In the future, when the issue is solved you are pointing to, there will be a difference b/w publishable and buildable libs. Then, we can move to buildable libs by default. Also, we can provide a way to opt-out of it. I'd love to work with you on this. Feel free to send a PR. |
Sounds good. I'd be glad to support here. In the end, incremental builds would work by default, but we also have the option to
I'll have a look into it and will prepare a PR. |
Sounds great. What do you think about --type internal|publishable|buildable defaulting to publishable? |
Sure, that would work aswell. I'm just wondering if publishable would really be the most common use case and should be default. I would expect buildable to be most commonly used when its ready from nx side. |
When I use the nx-ddd-plugin to scaffold a domain library + a feature library, the libraries are always added as publishable libraries (with extra
package.json
+ build target inangular.json
, etc.) without the option to make it non publishable (if I didn't miss something).This has the following drawbacks:
angular.json
angular.json
to makenx affected:build
work. This ofc is an annoying workaround.Reproduction steps
--> Errors appear (like within the previously noted nx github issue)
Further notes:
The option to have a publishable lib should at least be avoidable by providing a flag.
By looking at the source code, I recognized, that you call the
nrwl angular lib
schematic without any kind of publishable flag. Since publishable is defaulted to false within thenrwl angular lib
schematic, I'm quite confused about the nx-ddd-plugin creating publishable libs.The text was updated successfully, but these errors were encountered: