1.0.7 • Published 7 years ago
ngxs-schematics v1.0.7
Install Angular CLI
You should be using @angular/cli@6.1.0 or newer.
npm i -g @angular/cliInstall NGXS Schematics
npm i -g @ngxs/schematicsUsage
Creating a new project
To generate new Angular project with NGXS Store, you can use ng new with @ngxs/schematics specified as the schematics collection.
ng new --collection=@ngxs/schematics my-appCreate a NGXS Store
To generate store with @ngxs/schematics:
ng generate @ngxs/schematics:store --name todoResult:
CREATE src/todo/todo.actions.ts
CREATE src/todo/todo.state.tsOr with spec:
ng generate @ngxs/schematics:store --name todo --specResult:
CREATE src/todo/todo.actions.ts
CREATE src/todo/todo.state.spec.ts
CREATE src/todo/todo.state.tsCreate a NGXS State
To generate state with @ngxs/schematics:
ng generate @ngxs/schematics:state --name todoResult:
CREATE src/todo/todo.state.tsOr with spec:
ng generate @ngxs/schematics:state --name todo --specResult:
CREATE src/todo/todo.state.spec.ts
CREATE src/todo/todo.state.tsCreate a NGXS Actions
To generate state with @ngxs/schematics:
ng generate @ngxs/schematics:actions --name todoResult:
CREATE src/todo/todo.actions.tsNGXS Starter Kit
Usage
To generate store with @ngxs/schematics:starter-kit:
ng generate @ngxs/schematics:starter-kitResult:
CREATE src/store/store.config.ts
CREATE src/store/store.module.ts
CREATE src/store/auth/auth.actions.ts
CREATE src/store/auth/auth.state.ts
CREATE src/store/auth/model/auth.model.ts
CREATE src/store/dashboard/index.ts
CREATE src/store/dashboard/states/dictionary/dictionary.actions.ts
CREATE src/store/dashboard/states/dictionary/dictionary.state.ts
CREATE src/store/dashboard/states/dictionary/model/dictionary-response.model.ts
CREATE src/store/dashboard/states/user/user.actions.ts
CREATE src/store/dashboard/states/user/user.state.ts
CREATE src/store/dashboard/states/user/model/person.model.tsOr with spec:
ng generate @ngxs/schematics:starter-kit --specResult:
CREATE src/store/store.config.ts
CREATE src/store/store.module.ts
CREATE src/store/auth/auth.actions.ts
CREATE src/store/auth/auth.state.spec.ts
CREATE src/store/auth/auth.state.ts
CREATE src/store/auth/model/auth.model.ts
CREATE src/store/dashboard/index.ts
CREATE src/store/dashboard/states/dictionary/dictionary.actions.ts
CREATE src/store/dashboard/states/dictionary/dictionary.state.spec.ts
CREATE src/store/dashboard/states/dictionary/dictionary.state.ts
CREATE src/store/dashboard/states/dictionary/model/dictionary-response.model.ts
CREATE src/store/dashboard/states/user/user.actions.ts
CREATE src/store/dashboard/states/user/user.state.spec.ts
CREATE src/store/dashboard/states/user/user.state.ts
CREATE src/store/dashboard/states/user/model/person.model.ts1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago