hygen-angular-modules-generator
Generator Angular Modules.
Installation
- Install
hygen
by executing commandnpm install -g hygen
. - Execute command
npm install @ronas-it/hygen-angular-modules-generator
in project folder.
Usage
Generate section module
hygen generator section-module --name name-of-section
Generate page module
hygen generator page-module --section name-of-section --name name-of-page
Generate page module with service
hygen generator page-module --section name-of-section --name name-of-page --withService
Generate child component for page (deprecated)
hygen generator page-child-component --section name-of-section --page name-of-page --name name-of-component
Generate component for page
hygen generator page-shared --section name-of-section --page name-of-page --name name-of-component --component
Generate directive for page
hygen generator page-shared --section name-of-section --page name-of-page --name name-of-directive --directive
Generate pipe for page
hygen generator page-shared --section name-of-section --page name-of-page --name name-of-pipe --pipe
Generate service for page
hygen generator page-shared --section name-of-section --page name-of-page --name name-of-service --service
Generate child page module for another page (deprecated)
hygen generator child-page-module --section name-of-section --parentPage name-of-page --name name-of-child-page
Generate child component for child page
hygen generator child-page-component --section name-of-section --parentPage name-of-parent-page --page name-of-child-page --name name-of-component
Generate component for child page
hygen generator child-page-shared --section name-of-section --page name-of-page --name name-of-component --component
Generate directive for child page
hygen generator child-page-shared --section name-of-section --parentPage parent-page-name --page name-of-page --name name-of-directive --directive
Generate pipe for child page
hygen generator child-page-shared --section name-of-section --parentPage parent-page-name --page name-of-page --name name-of-pipe --pipe
Generate service for child page
hygen generator child-page-shared --section name-of-section --parentPage parent-page-name --page name-of-page --name name-of-service --service
Generate shared module
Generate shared module (component)
hygen generator shared-module --name name-of-component --component
Generate shared module (directive)
hygen generator shared-module --name name-of-directive --directive
Generate shared module (pipe)
hygen generator shared-module --name name-of-pipe --pipe
Generate shared module (service)
hygen generator shared-module --name name-of-service --service
Generate section shared module
Generate section shared module (component)
hygen generator section-shared-module --name name-of-component --component
Generate section shared module (directive)
hygen generator section-shared-module --name name-of-directive --directive
Generate section shared module (pipe)
hygen generator section-shared-module --name name-of-pipe --pipe
Generate section shared module (service)
hygen generator section-shared-module --name name-of-service --service