@ten-group/schematics

1.0.1 • Public • Published

ten-group schematics

This repository contains schematics for generating boilerplate code needed by ten-group.

Currently it only has a schematic for generating ngrx code (actions, reducer and effects files along with spec files).

Usage:

ng generate ngrx --collection=@ten-group/schematics <name> <module> <options ...>

Required

  • name (string). Name of the state model (without "State" suffix).

  • module (string). Path to an Angular module.

Options

  • useEntityAdapter. Use an entity adapter inside reducer created. (e.g. --useEntityAdapter)
  • root (boolean). Add StoreModule.forRoot and EffectsModule.forRoot instead of forFeature (e.g., --root).
  • onlyEmptyRoot (boolean). Do not generate any files. Only generate StoreModule.forRoot and EffectsModule.forRoot (e.g., --onlyEmptyRoot).
  • onlyAddFiles (boolean). Only add new NgRx files, without changing the module file (e.g., --onlyAddFiles).

Unit Testing

npm run test will run the unit tests, using Jasmine as a runner and test framework.

Readme

Keywords

Package Sidebar

Install

npm i @ten-group/schematics

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

25.9 kB

Total Files

25

Last publish

Collaborators

  • hevans90
  • robt1019
  • sryzycki
  • ten-admin