https://github.com/oktadev/okta-angular-schematics-example
A Basic Schematics Example
https://github.com/oktadev/okta-angular-schematics-example
angular angular-schematics schematics schematics-cli
Last synced: 11 months ago
JSON representation
A Basic Schematics Example
- Host: GitHub
- URL: https://github.com/oktadev/okta-angular-schematics-example
- Owner: oktadev
- License: apache-2.0
- Created: 2019-02-06T20:41:03.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2021-04-15T20:40:08.000Z (almost 5 years ago)
- Last Synced: 2025-03-25T11:21:25.522Z (11 months ago)
- Topics: angular, angular-schematics, schematics, schematics-cli
- Language: TypeScript
- Homepage: https://developer.okta.com/blog/2019/02/13/angular-schematics
- Size: 32.2 KB
- Stars: 5
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Getting Started With Schematics
This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to npm. Read [Use Angular Schematics to Simplify Your Life](https://developer.okta.com/blog/2019/02/13/angular-schematics) to see how this example was created. You can also [watch a screencast on YouTube](https://youtu.be/ANwZIt3Ni2s).
**Prerequisites:** [Node.js 10](https://nodejs.org).
* [Getting Started](#getting-started)
* [Links](#links)
* [Help](#help)
* [License](#license)
## Getting Started
Clone this application to your local hard drive using Git.
```
git clone https://github.com/oktadeveloper/okta-angular-schematics-example.git schematics-example
cd schematics-example
npm i
```
### 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
```bash
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:
```bash
npm run build
npm publish
```
That's it!
## Links
This example uses the following open source libraries:
* [Schematics](https://www.npmjs.com/package/@angular-devkit/schematics)
## Help
Please post any questions as comments on the [blog post](https://developer.okta.com/blog/2019/02/13/angular-schematics), or visit our [Okta Developer Forums](https://devforum.okta.com/).
## License
Apache 2.0, see [LICENSE](LICENSE).