@sentinel-one/mgmt-schematics
v2.0.10
Published
A SentinelOne MGMT schematics
Downloads
76
Maintainers
Keywords
Readme
Management Schematics
This repo will help us generate boilerplate code in our console.
Generating Code
Generate ui-table feature module
ng g @sentinel-one/mgmt-schematics:mgmt-ui-table YOUR-FEATURE-NAME
Generate ui-table feature module with API settings
ng g @sentinel-one/mgmt-schematics:mgmt-ui-table YOUR-FEATURE-NAME --useApi
Generate ui-table feature module with a main service
ng g @sentinel-one/mgmt-schematics:mgmt-ui-table YOUR-FEATURE-NAME --mainService
Generate ui-table feature module with row expand component
ng g @sentinel-one/mgmt-schematics:mgmt-ui-table YOUR-FEATURE-NAME --rowExpandComponent
Generate ui-table feature module with Actions drop-down on the upper left
ng g @sentinel-one/mgmt-schematics:mgmt-ui-table YOUR-FEATURE-NAME --upperLeftActions
Developing
Testing
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
Unit Testing
npm run test
will run the unit tests, using Jasmine as a runner and test framework.
Publishing
To publish, simply do:
npm run build
npm version minor
npm publish --access public
That's it!