Utility to create slices in Feature-Sliced Design methodology. Expect, that you have already installed `react`, `typescript`, `@reduxjs/toolkit`, `@reduxjs/toolkit-query`, `i18n` and use `module.scss` structure.
npm install @gobvoz/cli-fsdUtility to create slices in Feature-Sliced Design methodology.
Expect, that you have already installed react, typescript, @reduxjs/toolkit, @reduxjs/toolkit-query, i18n and use module.scss structure.
``sh`
npm install @gobvoz/cli-fsd -g
Create folders structure
`sh`
fsd init
generate slice template
`sh`
fsd new|n
add to slice template
`sh`
fsd add|a
#### Layer:
- feature(s) - create feature sliceentit(y|ies)
- - create entity slicepage(s)
- - create page slicewidget(s)
- - create widget slice
#### Slice name:
- - name of the slice
#### Option:
- lazy-load(er) - add lazy loader template to the slice-name. Typically used to load a page asynchronously.test(s)
- - create __TEST__ folder or add a test template to an existing folder.component
- - add component template to ui folder.
`sh``
fsd new pages user
fsd new widget user
fsd new entities user
fsd new feature user
fsd add feature user lazy-load
fsd add entity user tests [specific name]
fsd add entity user model