-
Notifications
You must be signed in to change notification settings - Fork 37
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
Added support for loading D3 v4 #8
Conversation
// a dependency of another package. | ||
if (!app.import) { | ||
if (this.isDevelopingAddon()) { | ||
console.log('[ember-cli-d3-shape] skipping included hook for', app.name); |
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.
This may break on older versions of node, which don't have a console
global. Prefer to use
https://ember-cli.com/api/classes/UI.html#method_write
|
I've been importing the entire D3 4.2.2 library, but in an effort to reduce the weight of our app, I wanted to pull in specific submodules. I was about to do what you are in the process of doing. ;-) Is there a target date for this to be merged to master? |
@gtb104 if you can give this branch a try out in your app and report back that'd be a big help. The main thing has just been testing it, I haven't had much time lately. The loading mechanism in this branch has a quite a few changes to before, we need test:
|
I'll see if I can get mgmt to buy off on me test-driving this. |
I got only: ['d3-array', 'd3-axis', 'd3-collection', 'd3-color', 'd3-dispatch', 'd3-ease', 'd3-format', 'd3-interpolate', 'd3-path', 'd3-selection', 'd3-shape', 'd3-scale', 'd3-time', 'd3-timer', 'd3-time-format', 'd3-transition'] |
Ok yeah, if you were just using |
Thanks @spencer516, @mike-north, @gtb104 and @brzpegasus for all the contributions, ideas, and testing that made this PR. It's now merged and I've cut a Please test this out in your apps and report back, after any patches we'll cut a 4.0 release to keep it obviously different to 🍻 |
Related discussion: #4
This is an almost verbatim import from https://github.com/ivanvanderbyl/ember-cli-d3-shape