ng-schematics

このリポジトリは Angular アプリケーション用の Custom Schematics です。

Use

Install

$ yarn add @kasaharu/ng-schematics -D

Generate NgRx Store by this schematics

  • Generate 2 files src/app/features/store/hello.store.ts and src/app/features/store/hello.store.spec.ts
$ yarn ng-schematics ngrx-store --name features/store/hello
  • If multiple projects,
$ yarn ng-schematics ngrx-store --name features/store/hello --project other-app

Development

build and use

$ yarn build
$ yarn schematics .:ngrx-store --name features/store/hello --debug false

test

$ yarn test