Schematics library for angular generate.
npm i --save-dev ng-page-schematics
ng generate ng-page-schematics:page name-of-page --spec=false
Will create the following component
- *.page.html
- *.page.ts
- *.page.scss
- *.module.ts
- *.routing.ts
- *.spec.ts
and update the parent routing that contains the key routes
;
see the list of parameter here --spec=false
This library has been created with @angular-devkit/schematics-cli
npm install -g @angular-devkit/schematics-cli
schematics blank --name=ng-page-schematics
after coding run
npm run build
npm publish