Nx: Ability to make an existing library buildable

Created on 28 Jul 2020  路  6Comments  路  Source: nrwl/nx

I have a large angular project with many libraries, and four apps, so build the project take a lot of time because libraries are builded every time with each app build.

So I want to know if there is a way to add buildable option to my existing libraries

Many thanks, and sorry for my bad english, I'm not a native speaker... but we do what we can 馃槃

core feature

Most helpful comment

@john0tough we have it on our list to work on official schematics to support this also.

All 6 comments

Hey @john0tough I recently made this simple schematic for doing it internally that i published to npm

https://www.npmjs.com/package/@trellisorg/make-buildable

I haven't written tests or used it extensively but feel free to give it a go. Right now it supports node and angular libs but no others.

@john0tough we have it on our list to work on official schematics to support this also.

Hey @john0tough I recently made this simple schematic for doing it internally that i published to npm

https://www.npmjs.com/package/@trellisorg/make-buildable

I haven't written tests or used it extensively but feel free to give it a go. Right now it supports node and angular libs but no others.

Thanks, I'll take a look

@brandonroberts any news on this? Can we pitch in and write this schematic or even better incorporate @yharaskrik schematic.

+1

Recently updated to fix a couple of bugs, remove some hardcoded values and conditionally set some builders based on nx version.

https://www.npmjs.com/package/@trellisorg/make-buildable

Was this page helpful?
0 / 5 - 0 ratings