https://github.com/cedricduffournet/schematics-ngx-starter
schematics-ngx-starter
https://github.com/cedricduffournet/schematics-ngx-starter
angular shematics
Last synced: about 2 months ago
JSON representation
schematics-ngx-starter
- Host: GitHub
- URL: https://github.com/cedricduffournet/schematics-ngx-starter
- Owner: cedricduffournet
- License: mit
- Created: 2019-07-29T18:13:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T20:14:49.000Z (over 2 years ago)
- Last Synced: 2025-03-15T17:03:03.908Z (2 months ago)
- Topics: angular, shematics
- Language: TypeScript
- Size: 1.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Schematic for ngx-starter app
The schematics in this library will help your generate CRUD feature in my [ngx-starter](https://github.com/cedricduffournet/ngx-starter.git).
[](https://travis-ci.com/cedricduffournet/schematics-ngx-starter)
## Using Schematics
Run schematics from your console in project.
```bash
ng generate @cedricduff/schematics-ngx-starter:crud MyFeature
```if you want to generate list with pagination add `--paginated` option
```bash
ng generate @cedricduff/schematics-ngx-starter:crud MyFeature --paginated
```
## Feature structure
```tree
├── ...
├── src/
│ ├── app/
│ ├── my-feature
│ │── components
│ │ │── my-feature-add
│ │ │ │── my-feature-add.component.html
│ │ │ │── my-feature-add.component.spec.ts
│ │ │ │── my-feature-add.component.ts
│ │ │── my-feature-delete
│ │ │ │── my-feature-delete.component.html
│ │ │ │── my-feature-delete.component.spec.ts
│ │ │ │── my-feature-delete.component.ts
│ │ │── my-feature-form
│ │ │ │── my-feature-delete.component.html
│ │ │ │── my-feature-delete.component.spec.ts
│ │ │ │── my-feature-delete.component.ts
│ │ │── my-feature-item
│ │ │ │── my-feature-item.component.html
│ │ │ │── my-feature-item.component.spec.ts
│ │ │ │── my-feature-item.component.ts
│ │ │── my-feature-items
│ │ │ │── my-feature-items.component.html
│ │ │ │── my-feature-items.component.spec.ts
│ │ │ │── my-feature-items.component.ts
│ │ │── my-feature-update
│ │ │ │── my-feature-update.component.html
│ │ │ │── my-feature-update.component.spec.ts
│ │ │ │── my-feature-update.component.ts
│ │ │── index.ts
│ │── containers
│ │ │── my-feature-add-modal
│ │ │ │── my-feature-add-modal.component.html
│ │ │ │── my-feature-add-modal.component.spec.ts
│ │ │ │── my-feature-add-modal.component.ts
│ │ │── my-feature-delete
│ │ │ │── my-feature-delete-modal.component.html
│ │ │ │── my-feature-delete-modal.component.spec.ts
│ │ │ │── my-feature-delete-modal.component.ts
│ │ │── my-feature-list-view
│ │ │ │── my-feature-list-view.component.html
│ │ │ │── my-feature-list-view.component.spec.ts
│ │ │ │── my-feature-list-view.component.ts
│ │ │── my-feature-items
│ │ │ │── my-feature-update-modal.component.html
│ │ │ │── my-feature-update-modal.component.spec.ts
│ │ │ │── my-feature-update-modal.component.ts
│ │ │── index.ts
│ │── models
│ │ │── my-feature.ts
│ │── services
│ │ │── my-feature.service.ts
│ │ │── index.ts
│ │── state
│ │ │── actions
│ │ │ │── index.ts
│ │ │ │── my-feature-add-modal.actions.ts
│ │ │ │── my-feature-api.actions.ts
│ │ │ │── my-feature-delete-modal.actions.ts
│ │ │ │── my-feature-list-view.actions.ts
│ │ │ │── my-feature-update-modal.actions.ts
│ │ │── effects
│ │ │ │── index.ts
│ │ │ │── my-feature.effects.spec.ts
│ │ │ │── my-feature.effects.ts
│ │ │── reducers
│ │ │ │── index.spec.ts
│ │ │ │── index.ts
│ │ │ │── my-feature-collection.reducer.spec.ts
│ │ │ │── my-feature-collection.reducer.ts
│ │ │ │── my-feature-entities.reducer.spec.ts
│ │ │ │── my-feature-entities.reducer.ts
│ │ │── my-feature.facade.ts
│ │ │── my-feature.facade.spec.ts
│ │── my-feature.module.ts
└── ...
```### Unit Testing
`npm run test` will run the unit tests, using Jasmine as a runner and test framework.
### Publishing
To publish, simply do:
```bash
npm run build
npm publish
```That's it!