This project contains a collection of custom Angular schematics.
This schematic will inline the content of templateUrls.
npm ng g @openit.olivier.blanc/ng-schematics:inline-templates --max-lines 10 --base-path ./src
-
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.
This schematic will inline the content of styleUrls. Components with multiple styles are ignored.
npm ng g @openit.olivier.blanc/ng-schematics:inline-styles --max-lines 10 --base-path ./src
-
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.
This schematic will replace all tspescript private
class members and properties to their js #
equivalent.
npm ng g @openit.olivier.blanc/ng-schematics:private-to-pound --base-path ./src
-
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.
MIT