1.0.4 • Published 5 years ago
dd-schematics v1.0.4
DataDome Schematics
This repository contains DataDome scheamtics which helps to generate Pages from base components.
Install
Install the package by running following command in order to use this schematics.
npm install -g dd-schematics
You can also install this package locally in order to use it for only current project.
npm install dd-schematics --save-dev
Generate a page
In order to generate a page, run following command.
ng generate dd-schematics:page <pageName>
or
ng g dd-schematics:page <pageName>
e.g:
ng generate dd-schematics:page test
or
ng g dd-schematics:page test
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.