@openit.olivier.blanc/ng-schematics

1.0.0-4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @openit.olivier.blanc/ng-schematics

Weekly Downloads

0

Version

1.0.0-4

License

MIT

Unpacked Size

30.9 kB

Total Files

26

Last publish

Collaborators

  • openit.olivier.blanc