{"repo":"ngxs/schematics","free":true,"listed":false,"github":"https://github.com/ngxs/schematics","clone":"git clone https://github.com/ngxs/schematics.git","description":":wrench: Schematics for @ngxs/store","language":"TypeScript","stars":83,"topics":["angular","schematics","cli","ngxs","stage-2"],"license":"MIT","category":"cli-tools","readme_excerpt":"⚠️ DEPRECATED ⚠️ Deprecated: This package is no longer actively maintained. 💡 We recommend using the schematics from the ngxs/store package. --- Schematics This repository contains schematics for generating NGXS Store in Angular apps using the Angular CLI. Installation Install Angular CLI You should be using @angular/cli@6.1.0 or newer. Install NGXS Schematics Easy way to add NGXS Store in your application To add NGXS Store in application, you can use ng add with @ngxs/schematics . Option Description --- --- --skipInstall The flag to skip packages installing Result: Usage Generating Components You can use the ng generate (or just ng g) command to generate ngxs components: All possible commands in the table below: Scaffold Usage Aliases Options --- --- --- --- Store ng g @ngxs/schematics:store ngxs-store --name (required), --path, --sourceRoot, --spec (boolean) State ng g @ngxs/schematics:state ngxs-state --name (required), --path, --sourceRoot, --spec (boolean) Actions ng g @ngxs/schematics:actions ngxs-actions --name (required), --path, --sourceRoot Starter Kit ng g @ngxs/schematics:starter-kit ngxs-sk --path, --sourceRoot, --spec (boolean) Aliases For used the aliases you need to set @ngxs/schematics as the default collection. Update your project's angular.json : Or simply use ng add @ngxs/schematics --skipInstall Options --name - there is a name of your store, state or actions --spec - flag that allow to generate the test file --sourceRoot - absolute path to create your f","default_branch":null,"files":null,"tree":[],"storefront":"/r/ngxs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ngxs/schematics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}