-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Inferring a framework to avoid having to type someframework: in front of every generator call #14
Comments
Another possibility is to use the default config file when it lands. Then the Angular generator couldadd a prop like |
Hooks in some way can be used to achieve that, but it quickly become a bit tedious to handle all possible js-framework variation (that's why I tried to introduce that Currently, we have a very basic It allows the generator: {
'js-framework ': angular
} (note: we currently have a little issue for that to work correctly, eg. https://github.com/yeoman/generators/blob/master/base.js#L22-35 is overriding any Hooks are really handy to customize and try to decouple some part of a generator (like generating tests for a given test fwk), but for the purpose of setting up a default namespace (like angular, instead of yeoman), I'd like to introduce This value can be configured in the application Gruntfile like so: generator: {
base: 'angular',
// other hook names, ex.
'test-framework': 'jasmine'
}
btw, thanks a lot @btford for your awesome work on these angular generators. I really like them. |
This should be possible with our new storage functionality. @SBoudrias right? |
Meh, yes and no, we could store the main generator, but that'd need to be handled by Although, I'm not sure this suggestion would work well with our concerns on Composability between different generators as it basically prevent to use two top-level generator on the same project. |
This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days |
From: yeoman/yeoman#136
@btford
@addyosmani
I'll dig around some as well.
The text was updated successfully, but these errors were encountered: