-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add support for dev dependencies #36
Conversation
@@ -47,7 +47,12 @@ module.exports = CoreObject.extend({ | |||
var pkgs = Object.keys(scenario.dependencies); | |||
|
|||
pkgs.forEach(function(pkg){ | |||
bowerJSON.dependencies[pkg] = scenario.dependencies[pkg]; | |||
if (bowerJSON.devDependencies[pkg]) { | |||
bowerJSON.devDependencies[pkg] = scenario.dependencies[pkg]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't you want
scenario.devDependencies[pkg]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not worth the distinction in this case. But I can imagine this changes somewhere in the future. If it's preferred to distinct between dependencies
and devDepencies
i'll change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep them separated, so that a scenario can be expressed as follows:
{
name: 'ember-1.11',
dependencies: {
'ember': '~1.11.0'
},
devDependencies: {
'somePkg': '~99.99.1'
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@truenorth - Agreed.
@martndemus - Would you mind updating for that structure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rwjblue / @truenorth sure.
Now even with unit tests. |
👍 |
Add support for dev dependencies
Thanks @martndemus! this is a nice addition to the addon |
This commit adds support for overriding bower packages specified in
devDependencies
.I should add (a) test(s).