GeertjanWielenga / YoNetBeans

NetBeans tools for Yeoman.
7 stars 2 forks source link

Please separate project generators and project feature generators, if possible #1

Open Chris2011 opened 9 years ago

Chris2011 commented 9 years ago

I tried your plugin and it's nice, maybe it's beta or so but it doesn't matter atm ;). There is a generator-angular for a whole project template: https://github.com/yeoman/generator-angular. This generator comes with some other generators (Don't know how to call it, maybe subgenerators or feature generators) to create a controller, a directive and so on angular: controller, angular:directive, etc.

The problem is that it doesn't make sense, to create projects with those feature generators, because they need project files, they will raise an error like: Unable to find app\index.html. Reference to controllers\test.js not added.

Such feature generators, make sense for such html5 project, created with this generator which has those feature generators.

Regards

Chris

GeertjanWielenga commented 9 years ago

Hi Chris, Thanks for taking the YoNetBeans plugin for a spin. I agree absolutely about the need to separate those generators -- I just don't know how, I don't know if there's a way to identify whether the generator is for projects or for project features and I don't think Yeoman provides any way to distinguish between them. Feel free to Tweet and blog etc about this plugin! Geertjan

 On Tuesday, February 24, 2015 10:41 AM, Chris2011 <notifications@github.com> wrote:

I tried your plugin and it's nice, maybe it's beta or so but it doesn't matter atm ;). There is a generator-angular for a whole project template: https://github.com/yeoman/generator-angular. This generator comes with some other generators (Don't know how to call it, maybe subgenerators or feature generators) to create a controller, a directive and so on angular: controller, angular:directive, etc.The problem is that it doesn't make sense, to create projects with those feature generators, because they need project files, they will raise an error like: Unable to find app\index.html. Reference to controllers\test.js not added.Such feature generators, make sense for such html5 project, created with this generator which has those feature generators.RegardsChris— Reply to this email directly or view it on GitHub.

SBoudrias commented 9 years ago

I think it's fair to assume app generators are the main generators - creating apps.

But it is true there's some generators who're only for parts of an application (like generator-karma, generator-jasmine, etc)