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 ./srcdry-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 ./srcdry-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 ./srcdry-run
: do not write files
For more information on Angular Schematics, check out the official docs.
License
MIT