This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.
To test locally, install @angular-devkit/schematics-cli
globally and use the schematics
command line tool. That tool acts the same as the generate
command of the Angular CLI, but also has a debug mode.
Check the documentation with
schematics --help
That's it!
Go to your angular project and after installing the package run:
npm i angular-schema
Go to your angular project and after installing the package run:
ng g angular-schema:core //it generates a core module
ng g angular-schema:token //it generates an token interceptor
If you already want ran this but want to generate default files again, use --force flag in the above command.
That's it!
https://github.com/Saad-Amjad/schema
https://www.npmjs.com/package/angular-schema
- License: MIT
- Author: saad.amjad
- Angular
- Schematics