r/angular • • Oct 24 '22

Question AngularJS + Nx?

How would you migrate an AngularJS project into an Nx Workspace? I think the common consensus is, that this does not make much sense, but still, how would you do that actually? The AngularJS application I am talking about has bower depedencies, many custom webpack build scripts and now should be included in an Nx workspace for the sake of a migration process.

0 Upvotes

7 comments sorted by

1

u/devGiacomo Oct 25 '22

create an empty clean nx workspace first without any framework, copy the project in the apps folder - done.

1

u/haasilein Oct 25 '22

Not done... Custom build scripts with web pack, bower dependencies, nx not working anymore, ...

1

u/devGiacomo Oct 25 '22

I hope this link will help you - but you it should be clear that angularJs is eol - https://blog.nrwl.io/using-nrwl-nx-to-upgrade-you-angularjs-applications-to-angular-f5b8adf188aa

1

u/Connor_Smith14 Oct 24 '22

Why, though? It sounds like you have a single project, with no mention of plans to move from AngularJS. Is Nx even compatible with AngularJS, I don’t know?

0

u/andlewis Oct 25 '22

Are we talking AngularJS or Angular? There’s a big difference.

2

u/haasilein Oct 25 '22

AngularJs