New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for third-party generator blueprints #2618

Closed
mischkl opened this Issue Oct 10, 2016 · 12 comments

Comments

Projects
None yet
6 participants
@mischkl

mischkl commented Oct 10, 2016

I actually have no experience with this feature on Ember, but I see that ember-cli has it and I think would be a great boon to angular-cli: the ability for the user to generate code from their own blueprints, or to use third party ones installed via npm. I guess this could be part of the "add-ons" functionality I've heard rumors about. ;)

Example use cases would be generating routes for UI-Router, generating stores for ngrx or Redux, generating GraphQL endpoints for use with angular2-apollo, generating style guides or other kinds of documentation, and on and on - the imagination of the GitHub community would be the limit. :)

Note: I realize Yeoman can already accommodate some use cases, but it's not really designed to deal with existing projects, it can't use/extend the angular-cli API, and in all likelihood anyone using angular-cli won't give it a second look.

@filipesilva

This comment has been minimized.

Show comment
Hide comment
@filipesilva

filipesilva Oct 10, 2016

Member

This is on our radar for the addon system actually.

Member

filipesilva commented Oct 10, 2016

This is on our radar for the addon system actually.

@mischkl

This comment has been minimized.

Show comment
Hide comment
@mischkl

mischkl Oct 10, 2016

@filipesilva awesome, glad to hear it. :)

mischkl commented Oct 10, 2016

@filipesilva awesome, glad to hear it. :)

@christopherthielen

This comment has been minimized.

Show comment
Hide comment
@christopherthielen

christopherthielen Jan 23, 2017

I'd like to add support for routing with ui-router-ng2. What are the current ideas for how third party support might be implemented?

christopherthielen commented Jan 23, 2017

I'd like to add support for routing with ui-router-ng2. What are the current ideas for how third party support might be implemented?

@filipesilva

This comment has been minimized.

Show comment
Hide comment
@filipesilva

filipesilva Jan 23, 2017

Member

Heya @christopherthielen! There isn't a public plan available for third party blueprints yet. It's mostly a post 1.0 concern at the moment.

I think the best you can do currently is provide some instructions on how to modify a newly generated project to use ui-router-ng2. Let me know if you have any trouble doing it.

Member

filipesilva commented Jan 23, 2017

Heya @christopherthielen! There isn't a public plan available for third party blueprints yet. It's mostly a post 1.0 concern at the moment.

I think the best you can do currently is provide some instructions on how to modify a newly generated project to use ui-router-ng2. Let me know if you have any trouble doing it.

@CesarD

This comment has been minimized.

Show comment
Hide comment
@CesarD

CesarD Aug 10, 2017

Any news on this matter?
Is it being actively worked on or still in the drawer?

CesarD commented Aug 10, 2017

Any news on this matter?
Is it being actively worked on or still in the drawer?

@filipesilva

This comment has been minimized.

Show comment
Hide comment
@filipesilva

filipesilva Aug 21, 2017

Member

Support for custom blueprints was added in #7090, available in 1.4.0-beta.1 and up. It's based on @angular-devkit/schematics: https://github.com/angular/devkit/tree/master/packages/schematics/angular.

We don't yet have documentation and examples of how you can make your own but @Brocco is working on it.

Member

filipesilva commented Aug 21, 2017

Support for custom blueprints was added in #7090, available in 1.4.0-beta.1 and up. It's based on @angular-devkit/schematics: https://github.com/angular/devkit/tree/master/packages/schematics/angular.

We don't yet have documentation and examples of how you can make your own but @Brocco is working on it.

@CesarD

This comment has been minimized.

Show comment
Hide comment
@CesarD

CesarD Aug 21, 2017

Any schedule you might be working on for the release of a stable 1.4.0 version? Perhaps within the next 30 days? Just curious.
Thanks! 😃

CesarD commented Aug 21, 2017

Any schedule you might be working on for the release of a stable 1.4.0 version? Perhaps within the next 30 days? Just curious.
Thanks! 😃

@filipesilva

This comment has been minimized.

Show comment
Hide comment
@filipesilva

filipesilva Aug 30, 2017

Member

@CesarD yeah most likely. It's in rc.2 right now so it shouldn't take long at all.

Member

filipesilva commented Aug 30, 2017

@CesarD yeah most likely. It's in rc.2 right now so it shouldn't take long at all.

@kerihobo

This comment has been minimized.

Show comment
Hide comment
@kerihobo

kerihobo Mar 23, 2018

Hi is there any further news on this? I would love to be able to automate my new components being added to my router and also to set some defaults to my generated constructors, I would also like every component to be able to utilize my main stylesheet.

kerihobo commented Mar 23, 2018

Hi is there any further news on this? I would love to be able to automate my new components being added to my router and also to set some defaults to my generated constructors, I would also like every component to be able to utilize my main stylesheet.

@bmayen

This comment has been minimized.

Show comment
Hide comment
@bmayen

bmayen Mar 23, 2018

Support for custom blueprints was added in #7090 , available in 1.4.0-beta.1 and up. It's based on @angular-devkit/schematics : https://github.com/angular/devkit/tree/master/packages/schematics/angular .

bmayen commented Mar 23, 2018

Support for custom blueprints was added in #7090 , available in 1.4.0-beta.1 and up. It's based on @angular-devkit/schematics : https://github.com/angular/devkit/tree/master/packages/schematics/angular .

@CesarD

This comment has been minimized.

Show comment
Hide comment
@CesarD

CesarD Mar 25, 2018

Documentation on how to use it? Anywhere?????

CesarD commented Mar 25, 2018

Documentation on how to use it? Anywhere?????

@kerihobo

This comment has been minimized.

Show comment
Hide comment
@kerihobo

kerihobo commented Mar 26, 2018

Yeah plz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment