1.0.0-4 • Published 1 year ago

@openit.olivier.blanc/ng-schematics v1.0.0-4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Angular Schematics Collection

This project contains a collection of custom Angular schematics.

inline-templates

This schematic will inline the content of templateUrls.

Usage

npm ng g @openit.olivier.blanc/ng-schematics:inline-templates --max-lines 10 --base-path ./src

Options

  • max-lines: (type: number) Optional The maximum number of lines allowed for a template to be inlined. If omitted, all templates will be inlined.
  • base-path: (type: string) Optional Base path to run the conversion. Defaults to ./src
  • dry-run: do not write files

For more information on Angular Schematics, check out the official docs.

inline-styles

This schematic will inline the content of styleUrls. Components with multiple styles are ignored.

Usage

npm ng g @openit.olivier.blanc/ng-schematics:inline-styles --max-lines 10 --base-path ./src

Options

  • max-lines: (type: number) Optional The maximum number of lines allowed for a template to be inlined. If omitted, all templates will be inlined.
  • base-path: (type: string) Optional Base path to run the conversion. Defaults to ./src
  • dry-run: do not write files

For more information on Angular Schematics, check out the official docs.

private-to-pound

This schematic will replace all tspescript private class members and properties to their js # equivalent.

Usage

npm ng g @openit.olivier.blanc/ng-schematics:private-to-pound --base-path ./src

Options

  • base-path: (type: string) Optional Base path to run the conversion. Defaults to ./src
  • dry-run: do not write files

For more information on Angular Schematics, check out the official docs.

License

MIT

1.0.0-4

1 year ago

1.0.0-3

1 year ago

1.0.0-2

1 year ago

1.0.0-1

1 year ago