mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 03:23:57 +08:00
With this change - We replace `id` with `$id`, this no longer valid in draft-07. - Replace all `$schemas` to `http://json-schema.org/draft-07/schema`, this is needed to "pin" the schema to `draft-07`. More information about `draft-07` can be found https://json-schema.org/draft-07/json-schema-release-notes.html
Getting Started With Schematics
This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.
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 publish
That's it!