jh-multi-lib-schematic
v0.0.2
Published
A personal schematic to quickly scaffold Angular projects with a modular multi-library architecture.
Readme
jh-multi-lib-schematic
jh-multi-lib-schematic is an Angular schematic designed to quickly scaffold modular multi-library Angular projects with configurable suffix generation and global schematic settings.
Features
- Creates a modular library structure with proper prefixes and path aliases.
- Applies global schematic configurations for components, services, pipes, guards, directives, and more.
- Updates
tsconfig.jsonpaths automatically to reflect new libraries. - Optional suffix generation for Angular schematic artifacts like
Component,Service, etc. - Customizable schematic behavior via CLI flags.
Installation
Install via npm and add to your Angular workspace:
ng add jh-multi-lib-schematicUsage
Customize the schematic behavior using the following parameter:
| Parameter | Type | Description | Default |
|---------------------|---------|---------------------------------------------------------------------------------------------------------|---------|
| --generateSuffixes | boolean | If true, generated Angular schematics will include suffixes (e.g., Component, Service). If false, suffixes are omitted. | false |
Example:
ng add jh-multi-lib-schematic --generateSuffixesIf you omit the flag, suffixes will not be added by default.
What happens after running?
- Modular library structure created with proper prefixes and aliases.
- Global schematics configuration applied for components, services, pipes, guards, interceptors, directives, and more.
tsconfig.jsonpaths updated to reflect the new libraries.- Optionally, suffixes appended to generated schematic artifacts if
--generateSuffixesis true.
Contributing
Feel free to fork the repository and submit pull requests for improvements or new features.
License
MIT License
Support
If you have any questions or issues, please open an issue on GitHub or contact the author directly.
