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

[BUGFIX beta] Make the ember-source build work. #14658

Merged
merged 1 commit into from
Nov 30, 2016

Conversation

nathanhammond
Copy link
Member

@nathanhammond nathanhammond commented Nov 30, 2016

The build in 2.11.0-beta.1 is "broken" as dist doesn't include jQuery. It should do so dynamically so that it gets SemVer drift instead of being hard-set bundled per build.

It should also prefer a user-installed version of jquery to the version bundled with ember-source.

This PR:

  • Fixes the jQuery version lockdown bug.
  • Default uses the specified jQuery from the project directory.
  • Falls back to the version bundled with ember-source if not user-specified.

I think we broke this here: https://github.com/emberjs/ember.js/pull/14556/files

@nathanhammond nathanhammond changed the title [WIP] Make the ember-source build work. Make the ember-source build work. Nov 30, 2016
jqueryPath = path.dirname(resolve.sync('jquery/package.json', { basedir: this.project.root }));
} catch (error) {
jqueryPath = path.dirname(require.resolve('jquery/package.json'));
}
Copy link
Contributor

@chadhietala chadhietala Nov 30, 2016

Choose a reason for hiding this comment

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

Do we want to do a finally here and to make sure we have a jqueryPath and if not throw?

Copy link
Member Author

Choose a reason for hiding this comment

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

If we don't have a jqueryPath at this point something else is going to have resulted in this breaking long before we got this far. The one in the catch statement is depended upon by ember-source itself.

Copy link
Contributor

Choose a reason for hiding this comment

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

SG

@@ -30,7 +30,6 @@
"broccoli-funnel": "^1.0.6",
"broccoli-merge-trees": "^1.1.4",
"broccoli-rollup": "^1.0.3",
"broccoli-stew": "^1.2.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

This was already in dependencies.

@nathanhammond nathanhammond changed the title Make the ember-source build work. [BUGFIX beta] Make the ember-source build work. Nov 30, 2016
@rwjblue rwjblue merged commit c40ee15 into emberjs:master Nov 30, 2016
@homu homu mentioned this pull request Nov 30, 2016
2 tasks
@nathanhammond nathanhammond deleted the fix-build branch November 30, 2016 16:51
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