@mkoeglbynary/test-schematics
v0.1.1
Published
Includes different schematics for an angular frontend project
Downloads
1
Readme
Custom Schematics
This project includes custom schematics:
page
- takes
name
and optionalproject
,path
,skipModuleDeclaration
- It creates all files (
...page.ts/scss/html/spec.ts
) for a page-component inside the given path or default insidefeatures/pages/NAME
- adds the component in the declarations of the nearest angular-module and imports it
dialog
- takes
name
and optionalproject
,path
,skipModuleDeclaration
- It creates all files (
...dialog.ts/scss/html/spec.ts
) for a dialog-component inside the given path or default insidefeatures/dialogs/NAME
- adds the component in the declarations of the nearest angular-module and imports it
Use schematic in Angular- or Nx-Project
Inside the angular-project:
npm link $PATH_TO_PACKAGE
And run it with:
ng g $FOLDER_NAME:$SCHEMATIC_NAME $PARAMS
Unit Testing
npm run test
will run the unit tests, using Jasmine as a runner and test framework.