0.1.1 • Published 3 years ago

@mkoeglbynary/test-schematics v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Custom Schematics

This project includes custom schematics:

page

  • takes name and optional project,path,skipModuleDeclaration
  • It creates all files (...page.ts/scss/html/spec.ts) for a page-component inside the given path or default inside features/pages/NAME
  • adds the component in the declarations of the nearest angular-module and imports it

dialog

  • takes name and optional project,path, skipModuleDeclaration
  • It creates all files (...dialog.ts/scss/html/spec.ts) for a dialog-component inside the given path or default inside features/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.