@ni/nimble-angular-schematics v1.0.0-alpha.3
Nimble Angular Schematics
This repository is a simple schematic implementation for the nimble-angular repository.
It contains a template that extends the standard ng generate component template to include a Storybook file (*.stories.ts), and to modify the generated module file (*.module.ts) to explicitly export the component.
How to use this project
To generate a new nimble-* component in the nimble-angular repository:
npm i -D @ni/nimble-angular-schematicsat the root of NimbleAngular (should already be complete)Navigate to the
componentsdirectory. I.e.cd projects/nimble-angular/src/components/Run
ng generate moduleand enter the component name when prompted. E.g.nimble-buttonRun
ng g @ni/nimble-angular-schematics:nimbleand enter the same name. E.g.nimble-buttonNavigate back to the root directory and run Storybook to see the live component. Modify the component for your specific needs. E.g.
cd ../../../../
npm run nimble:watch:storybook
Contributing
Follow the instructions in CONTRIBUTING.md to modify this library.