@mareklesko/watch-ng-libraries

2.1.0 • 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.

Package Sidebar

Install

npm i @mareklesko/watch-ng-libraries

Weekly Downloads

162

Version

2.1.0

License

ISC

Unpacked Size

116 kB

Total Files

68

Last publish

Collaborators

  • mareklesko