Skip to content
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

Merged
merged 1 commit into from Jul 22, 2015
Merged

Add support for dev dependencies #36

merged 1 commit into from Jul 22, 2015

Conversation

ghost
Copy link

@ghost ghost commented Jul 20, 2015

This commit adds support for overriding bower packages specified in devDependencies.

I should add (a) test(s).

@@ -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];
Copy link
Member

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]

Copy link
Author

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.

Copy link
Member

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'
      }
}

Copy link
Member

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ghost
Copy link
Author

ghost commented Jul 20, 2015

Now even with unit tests.

@rwjblue
Copy link
Member

rwjblue commented Jul 22, 2015

👍

rwjblue added a commit that referenced this pull request Jul 22, 2015
@rwjblue rwjblue merged commit 96a9084 into ember-cli:master Jul 22, 2015
@mike-north
Copy link
Member

Thanks @martndemus! this is a nice addition to the addon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants