{"action":"created","issue":{"url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/250","labels_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/250/comments","events_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/250/events","html_url":"https://github.com/eclipsesource/tabris-js/issues/250","id":55736812,"number":250,"title":"Load tabris.js as a module","user":{"login":"tbuschto","id":527303,"avatar_url":"https://avatars.githubusercontent.com/u/527303?v=3","gravatar_id":"","url":"https://api.github.com/users/tbuschto","html_url":"https://github.com/tbuschto","followers_url":"https://api.github.com/users/tbuschto/followers","following_url":"https://api.github.com/users/tbuschto/following{/other_user}","gists_url":"https://api.github.com/users/tbuschto/gists{/gist_id}","starred_url":"https://api.github.com/users/tbuschto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbuschto/subscriptions","organizations_url":"https://api.github.com/users/tbuschto/orgs","repos_url":"https://api.github.com/users/tbuschto/repos","events_url":"https://api.github.com/users/tbuschto/events{/privacy}","received_events_url":"https://api.github.com/users/tbuschto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eclipsesource/tabris-js/labels/priority:%20medium","name":"priority: medium","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T10:11:04Z","updated_at":"2015-02-12T12:32:11Z","closed_at":"2015-02-12T12:32:11Z","body":"Currently tabris.js is located by the \"tabris\" entry in a projects package.json, which is not part of any standard. We should load tabris.js as a node-module instead. To do so we need the following.\r\n\r\n- tabris.js must be provided in a way that can be installed via npm. While the obvioius solution is to contribute it to npm itself, but it can also be an URL pointing to a git repo or tgz archive.\r\n- The module script needs to be separated from tabris.js and built into the clients themselves.\r\n- The native funtions require by the module system need to be made available before tabris.js is loaded. Either the nativeBridge is installed sooner, or these specific funtions are attached to the Module system itself.\r\n- The startup must be changed to first load the Module script, then call require(\"tabris\"). Everything else should be done by the module system."},"comment":{"url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/comments/74063402","html_url":"https://github.com/eclipsesource/tabris-js/issues/250#issuecomment-74063402","issue_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/250","id":74063402,"user":{"login":"tbuschto","id":527303,"avatar_url":"https://avatars.githubusercontent.com/u/527303?v=3","gravatar_id":"","url":"https://api.github.com/users/tbuschto","html_url":"https://github.com/tbuschto","followers_url":"https://api.github.com/users/tbuschto/followers","following_url":"https://api.github.com/users/tbuschto/following{/other_user}","gists_url":"https://api.github.com/users/tbuschto/gists{/gist_id}","starred_url":"https://api.github.com/users/tbuschto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbuschto/subscriptions","organizations_url":"https://api.github.com/users/tbuschto/orgs","repos_url":"https://api.github.com/users/tbuschto/repos","events_url":"https://api.github.com/users/tbuschto/events{/privacy}","received_events_url":"https://api.github.com/users/tbuschto/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T12:32:11Z","updated_at":"2015-02-12T12:32:11Z","body":"Fixed with commit da05e9f0dd2e68a050b6e423a3084d1bf945ecde."}}