0.0.2 • Published 5 years ago

nucleo-generator v0.0.2

Weekly downloads
5
License
MIT
Repository
-
Last release
5 years ago

Getting Started With Nucleo Schematics

This repository is a custom Indra Core Web App Schematic implementation that serves as a starting point to create components and other Angular part with our own code standards.

Nucleo Schematics

Page Module

ng generate nucleo-generator:page-module <name> <parameters>

This schematic will generate a page module with routing, store, reducer, actions, component and module.

Parameters

Parameter NameDescriptionTypeDefault ValueRequired
nameName of the page module to be generated.stringN/AYes
urlURL of the page module to be generated.stringnameNo
routingFlag that indicates if routing module should be generated.booleantrueNo
storeFlag that indicates if store and other related files should be generated.booleantrueNo
containerContainer to be used in the page component.stringsimpleNo
projectName of the project where page module should be generated.stringcurrent projectNo

Page

ng generate nucleo-generator:page <name> <parameters>

This schematic will generate a bare page component compare to the page module which generates almost every file needed.

Parameters

Parameter NameDescriptionTypeDefault ValueRequired
nameName of the page to be generated.stringN/AYes
serviceFlag that indicates if service should be generated.booleantrueNo
containerContainer to be used in the page component.stringsimpleNo
projectName of the project where page should be generated.stringcurrent projectNo

Form Component

ng generate nucleo-generator:form-component <name> <parameters>

This schematic will generate a form component with form group and sample inputs to work as guide.

Parameters

Parameter NameDescriptionTypeDefault ValueRequired
nameName of the form to be generated.stringN/AYes
serviceFlag that indicates if service should be generated.booleantrueNo
projectName of the project where form component should be generated.stringcurrent projectNo

CRUD Store

ng generate nucleo-generator:crud-store <name> <parameters>

This schematic will generate a CRUD store along with actions, reducer, effects, selectors, service and module. It will also have pre-generated functions connected with the CRUD.

Parameters

Parameter NameDescriptionTypeDefault ValueRequired
nameName of the entity store to be generated.stringN/AYes
uuidFlag that indicates if entity would have UUID.booleanfalseNo
projectName of the project where page module should be generated.stringcurrent projectNo

Blank Store

ng generate nucleo-generator:blank-store <name> <parameters>

This schematic will generate a blank store along with actions, reducer, effects, selectors, service and module. Compare to the CRUD Store, this schematic will not have pre-generated functions.

Parameters

Parameter NameDescriptionTypeDefault ValueRequired
nameName of the entity store to be generated.stringN/AYes
uuidFlag that indicates if entity would have UUID.booleanfalseNo
projectName of the project where page module should be generated.stringcurrent projectNo