Nx: [Question] How does this compare to alternatives?

Created on 19 Mar 2019  路  5Comments  路  Source: nrwl/nx

The docs are good, but something is missing. How does this compare to similar tools, e.g. lerna?

Can someone please advise the factors to consider when choosing the one or the other (or other alternatives)? Presumably there is overlap, but also I would assume one is better suited for some scenarios and the other is suitable for others.

Any advice would be appreciated!

question / discussion

Most helpful comment

Would be nice if nx support ng publish my-public-module, ng affected:publish --base=origin/master --head=HEAD, then we don鈥檛 need Lerna. Yes we also need version management support

All 5 comments

I wish #nx sopport lerna style release management , essentially useful for publishing lib modules

I'll leave a brief answer here but I think it would be helpful to have some formal FAQs section for our docs.

Lerna is good at easily running _everything_. It is probably better for doing things like publishing a set of libraries.

Nx is intelligent about how to run tasks on the workspace. Nx workspaces can have many internal projects which do not need to be published. It can decide which projects need to be re-tested, rebuilt, etc. for a subset of changes. This makes the amount of "work" which needs to be done significantly more manageable when a workspace has 100+ projects.

Thanks for explaining it to us! Makes more sense now... Maybe even a good idea to use both as @xmlking suggested for publishing workflows.

Also nx comes with an awesome GUI for vscode that makes using it a pleasure.

FAQ section would be very helpful. :+1:

I don't know if you want me to close, or leave open for the FAQ idea.

Would be nice if nx support ng publish my-public-module, ng affected:publish --base=origin/master --head=HEAD, then we don鈥檛 need Lerna. Yes we also need version management support

@xmlking Probably a good idea to have that in a separate issue so we don't forget about it. If enough people like the idea maybe we can have that feature one day. I'll upvote you.

Was this page helpful?
0 / 5 - 0 ratings