{"action":"created","issue":{"url":"https://api.github.com/repos/PommeVerte/gremlin-console-js/issues/1","repository_url":"https://api.github.com/repos/PommeVerte/gremlin-console-js","labels_url":"https://api.github.com/repos/PommeVerte/gremlin-console-js/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/PommeVerte/gremlin-console-js/issues/1/comments","events_url":"https://api.github.com/repos/PommeVerte/gremlin-console-js/issues/1/events","html_url":"https://github.com/PommeVerte/gremlin-console-js/issues/1","id":145361143,"number":1,"title":"cleaning up","user":{"login":"PommeVerte","id":1415875,"avatar_url":"https://avatars.githubusercontent.com/u/1415875?v=3","gravatar_id":"","url":"https://api.github.com/users/PommeVerte","html_url":"https://github.com/PommeVerte","followers_url":"https://api.github.com/users/PommeVerte/followers","following_url":"https://api.github.com/users/PommeVerte/following{/other_user}","gists_url":"https://api.github.com/users/PommeVerte/gists{/gist_id}","starred_url":"https://api.github.com/users/PommeVerte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PommeVerte/subscriptions","organizations_url":"https://api.github.com/users/PommeVerte/orgs","repos_url":"https://api.github.com/users/PommeVerte/repos","events_url":"https://api.github.com/users/PommeVerte/events{/privacy}","received_events_url":"https://api.github.com/users/PommeVerte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-02T10:40:28Z","updated_at":"2016-04-02T18:26:09Z","closed_at":null,"body":"Hey @jbmusso \r\n\r\nI was hoping you could explain a couple of things so that I can tidy this up a bit. I'm a little confused about the difference between `imports` and `require` and how `export` works. For example I use a `require` here https://github.com/PommeVerte/gremlin-console-js/blob/master/src/DriverClient.js#L1 but that's about the only one. Is it safe to assume that you should use `require` for third party modules?\r\n\r\nAlso I'm not really sure how to make my objects accessible in the browser. Currently doing : https://github.com/PommeVerte/gremlin-console-js/blob/master/src/index.js#L4 but this just doesn't look right.\r\n\r\nAny help would be appreciated.\r\nThanks!\r\n\r\nPS: Once I manage to clear this out a bit and get some more quality in I'll set up tests and docs for this + npm. I also have a couple of plugins for this that will allow viz features and console output."},"comment":{"url":"https://api.github.com/repos/PommeVerte/gremlin-console-js/issues/comments/204770240","html_url":"https://github.com/PommeVerte/gremlin-console-js/issues/1#issuecomment-204770240","issue_url":"https://api.github.com/repos/PommeVerte/gremlin-console-js/issues/1","id":204770240,"user":{"login":"jbmusso","id":203476,"avatar_url":"https://avatars.githubusercontent.com/u/203476?v=3","gravatar_id":"","url":"https://api.github.com/users/jbmusso","html_url":"https://github.com/jbmusso","followers_url":"https://api.github.com/users/jbmusso/followers","following_url":"https://api.github.com/users/jbmusso/following{/other_user}","gists_url":"https://api.github.com/users/jbmusso/gists{/gist_id}","starred_url":"https://api.github.com/users/jbmusso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbmusso/subscriptions","organizations_url":"https://api.github.com/users/jbmusso/orgs","repos_url":"https://api.github.com/users/jbmusso/repos","events_url":"https://api.github.com/users/jbmusso/events{/privacy}","received_events_url":"https://api.github.com/users/jbmusso/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T18:26:09Z","updated_at":"2016-04-02T18:26:09Z","body":"You have to build `gremlin` because its [current entry point is `lib/index.js` in the package.json](https://github.com/jbmusso/gremlin-javascript/blob/7d220c32c88696b9c51e98aeea8987416085c8d4/package.json#L5). The `/lib` folder [isn't versioned](https://github.com/jbmusso/gremlin-javascript/blob/7d220c32c88696b9c51e98aeea8987416085c8d4/.gitignore#L3), though it is published to npm (see [.npmignore](https://github.com/jbmusso/gremlin-javascript/blob/7d220c32c88696b9c51e98aeea8987416085c8d4/.npmignore) - actually, I shouldn't publish `/src` there as well).\r\n\r\nI'm doing so in order to ensure the end user doesn't have the burden of building/compiling from ES2015/2016 sources: it's all transpiled to EcmaScript 5 which runs pretty much anywhere now. The downside of this approach is that someone consuming `gremlin` on a recent platform (ie. Node v5.9.x) will be executing EcmaScript 5 code although it can actually run pretty much all of ES2015. Babel 6 added support for selective/progressive transpiling depending on the target runtime (have a look at Babel presets, this is really smart). I think it's still open for debate on how lib authors writing in ES2015/2016 code should publish their libraries. I might add an option that allow the end user to compile the source code according to the targeted runtime."}}