OasisDigital / angular-enterprise-example

Scalable / Large Angular application structure example
MIT License
125 stars 47 forks source link

Better hoisting, for faster bootstrap and less node_modules duplication #4

Closed kylecordes closed 6 years ago

kylecordes commented 7 years ago

Currently this example does not use the "hoist" mode of Lerna, because Angular CLI unfortunately requires that its dependencies be installed in the immediate, local node_modules directory, rather than using standard node module resolution (which would be possible of finding "hoisted" packages).

https://github.com/angular/angular-cli/issues/3864

I've already made an experimental branch which applies a bunch of symlinks to patch this up.

At some point, either ensure this is reasonably solid and use it, or hopefully see Angular CLI perform standard node resolution so that hoist "just works".

kylecordes commented 7 years ago

Some progress on the Angular CLI issue went in:

https://github.com/angular/angular-cli/pull/6276

... but unfortunately doesn't appear to do the job fully enough yet:

https://github.com/angular/angular-cli/issues/3864#issuecomment-303168778

kylecordes commented 6 years ago

This was achieved, or made irrelevant, by switching to Nx.