{"action":"created","issue":{"url":"https://api.github.com/repos/d3/d3/issues/2861","repository_url":"https://api.github.com/repos/d3/d3","labels_url":"https://api.github.com/repos/d3/d3/issues/2861/labels{/name}","comments_url":"https://api.github.com/repos/d3/d3/issues/2861/comments","events_url":"https://api.github.com/repos/d3/d3/issues/2861/events","html_url":"https://github.com/d3/d3/issues/2861","id":160921818,"number":2861,"title":"Web-based custom bundle generator.","user":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-17T16:03:41Z","updated_at":"2016-06-21T16:50:27Z","closed_at":null,"body":"From d3/d3-selection#79, @curran has prototyped a custom bundler:\r\n\r\nhttps://github.com/curran/d3-bundler-ui\r\n\r\nHere’s what I’d like to see for a custom bundler:\r\n\r\n* Completely static so that we can host it on d3js.org (in [d3/d3.github.com](https://github.com/d3/d3.github.com)), preferably with UI implemented in D3.\r\n\r\n* Has a known list of D3 modules, probably starting with the list in [d3’s package.json](https://github.com/d3/d3/blob/master/package.json) but also including a few optional modules such as d3-scale-chromatic.\r\n\r\n* For each known module, loads the corresponding package.json from npmcdn to discover dependencies (*e.g.*, [d3-time-format](https://npmcdn.com/d3-time-format@1.0.0/package.json) depends on [d3-time](https://npmcdn.com/d3-time@1.0.0/package.json)); it’ll need to observe version ranges, too, but npmcdn mostly resolves that through redirects.\r\n\r\n* For each module, it loads and parses the corresponding index.js from npmcdn to discover the exported symbols (*e.g.*, [d3-time-format](https://npmcdn.com/d3-time@1.0.0/index.js)). Probably it should use Esprima to parse.\r\n\r\n* For each symbol you check, a resulting custom index.js is generated and then passed through to Rollup to generate the custom bundle in the browser. Somehow you’ll have to load all the source files, too… Probably from npmcdn as well."},"comment":{"url":"https://api.github.com/repos/d3/d3/issues/comments/227501188","html_url":"https://github.com/d3/d3/issues/2861#issuecomment-227501188","issue_url":"https://api.github.com/repos/d3/d3/issues/2861","id":227501188,"user":{"login":"tungs","id":9443242,"avatar_url":"https://avatars.githubusercontent.com/u/9443242?v=3","gravatar_id":"","url":"https://api.github.com/users/tungs","html_url":"https://github.com/tungs","followers_url":"https://api.github.com/users/tungs/followers","following_url":"https://api.github.com/users/tungs/following{/other_user}","gists_url":"https://api.github.com/users/tungs/gists{/gist_id}","starred_url":"https://api.github.com/users/tungs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tungs/subscriptions","organizations_url":"https://api.github.com/users/tungs/orgs","repos_url":"https://api.github.com/users/tungs/repos","events_url":"https://api.github.com/users/tungs/events{/privacy}","received_events_url":"https://api.github.com/users/tungs/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T16:50:27Z","updated_at":"2016-06-21T16:50:27Z","body":"After thinking about it, I guess for now, I'll use the version numbers in d3's package.json, but beyond that I'm not sure how to resolve differing version numbers from dependencies."}}
{"actor":{"display_login":"tungs"}}