https://github.com/rangle/angular-schematic-patterns
https://github.com/rangle/angular-schematic-patterns
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rangle/angular-schematic-patterns
- Owner: rangle
- License: other
- Created: 2021-01-14T18:21:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-15T19:56:41.000Z (over 5 years ago)
- Last Synced: 2025-01-24T13:32:25.890Z (over 1 year ago)
- Language: TypeScript
- Size: 54.7 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Schematic Patterns
A collections of pragmatic Angular Schematic Patterns.
## SCAM Pattern
The Single Component Angular Module pattern is beneficial for maintaining and updating files within large scale Angular projects. In this schematic we also removed TestBed as the default test library for Angular due to it's inability to, at scale, provide a fast and extensible unit testing interface.
Inspiration and starting point taken from [wishtack/wishtack-steroids](https://github.com/wishtack/wishtack-steroids/tree/master/packages/schematics)
### Testing
This code was last tested with Angular 11. As Angular changes versions, underlying Schematics code can change dramatically so it's important to test at every major change with updated packages.
To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.
Check the documentation with
```bash
schematics --help
```
### Unit Testing
`npm run test` will run the unit tests, using Jest.