@mareklesko/watch-ng-libraries

2.1.1 • Public • Published

watch-ng-libraries

CLI to run ng apps using monorepo libraries. It parses angular.json and looks for module dependencies among libraries and application within angular monorepo. Then it builds dependecy map and build libraries in correct order to honor all dependecies. Project specified in serve command is then served using ng serve utilit from @angular/cli

In version 1.2.1 we added support for secondary entry points into ANG libraries support

Quick Example

watch-ng-libraries serve project -r -d /home/path/to/ang/project -p

watch-ng-libraries build project -r -d /home/path/to/ang/project -a --aot,--configuration,ivy

Command serve

Parameters

  • --libraries (-l): supplied list of libraries in chronological order instead of parsing the angular.json file
  • --directory (-d): working directory, defaults to current directory
  • --delete (-r): delete dist directory in project root
  • --detached (-p): runs the ng serve in detached console with full output.
  • --prod (-b): add custom options to ng build project --prod
  • --verbose (-v): detailed output from ngcc.
  • --ngccarguments (-a): colon delimited arguments that will be passed to ngcc. E.g ... -a --prod,--configuration,ivy will be passed as ng serve project --prod --configuration ivy
  • --memory (-m): set the node memory allocation (--max-old-space-size setting) for app served/build.

Command build

Parameters

  • --libraries (-l): supplied list of libraries in chronological order instead of parsing the angular.json file
  • --directory (-d): working directory, defaults to current directory
  • --delete (-r): delete dist directory in project root
  • --prod (-b): add custom options to ng build project --prod
  • --verbose (-v): detailed output from ngcc.
  • --ngccarguments (-a): colon delimited arguments that will be passed to ngcc. E.g ... -a --prod,--configuration,ivy will be passed as ng build project --prod --configuration ivy
  • --memory (-m): set the node memory allocation (--max-old-space-size setting) for app served/build.
  • --omit (-o): builds all dependency libraries, but will not build the application. Needed in case when application needs extra build configurations.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.186latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.186
2.1.01
2.0.01
1.2.21
1.2.11
1.2.01
1.11.01
1.10.01
1.9.01
1.8.11
1.8.01
1.1.01
1.0.11
1.0.01
0.9.9-pre11
0.4.21
0.4.11
0.4.01
0.3.01
0.2.21
0.2.11
0.2.01
0.1.01

Package Sidebar

Install

npm i @mareklesko/watch-ng-libraries

Weekly Downloads

108

Version

2.1.1

License

ISC

Unpacked Size

74.4 kB

Total Files

47

Last publish

Collaborators

  • mareklesko