nx-examples icon indicating copy to clipboard operation
nx-examples copied to clipboard

Request an example of app specific package.json setup

Open zergeborg opened this issue 3 years ago • 3 comments

I've seen that a similar question was closed.

But the question remains: is it possible to add app/library specific package.jsons to an nx workspace?

Since this repo is advertised on the nx website as the example for micro-frontends, I came here with high hopes, only to find disappointment since IMO this example is not a micro-frontend at all.

As I noted in #61 some thought leaders argue that it is fundamental for micro-frontends to be deployed autonomously, and a single version policy seriously hurts this goal.

zergeborg avatar Sep 10 '21 08:09 zergeborg

I agree it is very confusing that there is a "Nx Micro-Frontend Example" page on the Nx site but they didn't make any effort to actually communicate how Nx could be used with a micro frontend. I also spent 30 minutes working with this repo only to find out that it is not an example of a micro frontend as the site seems to imply. :( But after more searching there is a page "How to setup a Micro Frontend with Angular and Nx" which seems much more informative.

mattmbrightside avatar Oct 12 '21 22:10 mattmbrightside

@mattmbrightside could you share the link to that article?

Thank you

Alevale avatar Mar 28 '23 15:03 Alevale

The website appears to have been refactored over the last 1.5 years but the recipes section has some helpful info now: https://nx.dev/recipes/module-federation

mattmbrightside avatar Mar 28 '23 16:03 mattmbrightside