Angular-cli: Feature Request: Custom Blueprints

Created on 27 Sep 2016  路  16Comments  路  Source: angular/angular-cli

It would be great to be able to generate blueprints for the generator so that the community can build additional custom generators like for ngrx actions/effects, etc. As far as I know the Ember CLI allows it but the cli addon overrides it.
Thanks!

Most helpful comment

Any timing for when the addon support will be released?

All 16 comments

Not going to happen until we have addon support.

Any timing for when the addon support will be released?

Anything happening with this? Our project is growing and this would be of great help when getting new people involved and to reduce the number of mistakes that devs make when adding new components to the application.

The ability to customize what gets generated seems like a must-have feature.

We could totally do with this also. Specifically I'd like to write a generator that creates a smart-component that hooks into NGRX, with a spec that passes.

Support for custom blueprints was added in https://github.com/angular/angular-cli/pull/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.

Edit: also related to https://github.com/angular/angular-cli/issues/2618

I know @angular/cli just added support from blueprints. But I just found this library that works for any project.

So we can use with NativeScript, for example.

Lib: https://github.com/itslenny/scaffs

@filipesilva any news on the documentation about the blueprints? Would be great to have some reference to start using them. Thanks!

I need to be able to customize the spec files generated to use mocha and not have expect be a global. @Brocco even a small pointer would be nice.

Yup, we need at least some very basic documentation to start working with this feature.

Any update on documentation for this feature?

Hello, any updates? Thank you.

Still no updates on this? Are you guys willing to provide any documentation on this feature ever or at least refer us to another place to get it?
@hansl @filipesilva

Thanks

@CesarD try watch some talks about @angular/schematics:
https://www.youtube.com/watch?v=LZxbDp1nOVo&list=PLw5h0DiJ-9PB8XH7k1bzD_UGPQ21mea0f

You can also read these articles:
https://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2
https://medium.com/@tomastrajan/%EF%B8%8F-how-to-create-your-first-custom-angular-schematics-with-ease-%EF%B8%8F-bca859f3055d

Or read the almost finished ebook https://leanpub.com/angular-schematics

@leocaseiro thanks a lot!!

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings