1.0.15 • Published 2 years ago

ngrx-store-builder v1.0.15

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

NgRx Store Builder

When we integrate NgRx in any Angular project, we face the issue of repetitive code for the store files, to resolve the issue we came across the idea of ngrx-store-builder. It aims to generate store files dynamically by providing input of model name and model properties.

Note: This package will only work with node version 11 and above and this package is build to be used in Angular projects only.

Alt text

Installation

Install ngrx-store-builder with npm

Local Installation

npm install ngrx-store-builder --save-dev
  • Add the following script to the package.json file
  "scripts": {
    "generate:store":"generate-store"
  },
  • Then execute the following command to generate ngrx files
npm run generate

Global Installation

npm install ngrx-store-builder -g
  • Go to the directory where you want to generate ngrx files
  • Run the following command
generate-store
  • You need to provide Model Name and Model Properties as CLI Inputs after you run the above command

Folder Structure Of NgRx Generated Store

store
| 
|___actions //actions folder
|   |   modelName.action.ts
|___effects //effects folder
|   |   modelName.effect.ts
|___models //model folder
|   |   modelName.model.ts
|___reducers //reducer folder
|   |   modelName.reducer.ts
|___services //service folder
|   |   modelName.service.ts
|___states //states folder
|    |   modelName.state.ts
|___selectors //selectors folder
|   |   modelName.selector.ts
1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago