-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Currently Angular2 CLI provides a fixed set of blueprints to generate. A reoccurring pattern I have seen while using CLI is that I create a service using "ng g service MyService", get the stub which is pretty empty, and then perform similar modifications every time.
For instance, if we create services for REST CRUD operations, they follow a certain pattern:
- we have a constant for the URL
- we need to import Observable and Http
- we have methods like gets, delete, create, etc.
Is there something like a plugin-model/extension point where I can provide my own blueprints to generate and register them to CLI, so I could perform the command "ng g crud-service MyCrudService" in the example above?
Metadata
Metadata
Assignees
Labels
No labels