{"action":"created","issue":{"url":"https://api.github.com/repos/enketo/enketo-core/issues/287","labels_url":"https://api.github.com/repos/enketo/enketo-core/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/enketo/enketo-core/issues/287/comments","events_url":"https://api.github.com/repos/enketo/enketo-core/issues/287/events","html_url":"https://github.com/enketo/enketo-core/pull/287","id":101000024,"number":287,"title":"Convert to common JS","user":{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars.githubusercontent.com/u/191496?v=3","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-14T12:20:58Z","updated_at":"2015-08-20T16:49:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/enketo/enketo-core/pulls/287","html_url":"https://github.com/enketo/enketo-core/pull/287","diff_url":"https://github.com/enketo/enketo-core/pull/287.diff","patch_url":"https://github.com/enketo/enketo-core/pull/287.patch"},"body":"Thought you might be interested to see progress.  Bundling with browserify seems to be working nicely.\r\n\r\nThis isn't ready to be merged yet because:\r\n* the tests are broken (these still expect requirejs)\r\n* requirejs is not fully working.  I *think* this may be as simple as getting the config loading to accept either JSON or javascript objects\r\n* `Makefile` should probably be converted to `Gruntfile`\r\n* `patch` script shouldn't have been committed\r\n\r\nAlso I've turned off beautifier when running `grunt test` so that the PR diff is cleaner."},"comment":{"url":"https://api.github.com/repos/enketo/enketo-core/issues/comments/133073139","html_url":"https://github.com/enketo/enketo-core/pull/287#issuecomment-133073139","issue_url":"https://api.github.com/repos/enketo/enketo-core/issues/287","id":133073139,"user":{"login":"MartijnR","id":627350,"avatar_url":"https://avatars.githubusercontent.com/u/627350?v=3","gravatar_id":"","url":"https://api.github.com/users/MartijnR","html_url":"https://github.com/MartijnR","followers_url":"https://api.github.com/users/MartijnR/followers","following_url":"https://api.github.com/users/MartijnR/following{/other_user}","gists_url":"https://api.github.com/users/MartijnR/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnR/subscriptions","organizations_url":"https://api.github.com/users/MartijnR/orgs","repos_url":"https://api.github.com/users/MartijnR/repos","events_url":"https://api.github.com/users/MartijnR/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnR/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T16:49:33Z","updated_at":"2015-08-20T16:49:33Z","body":"I wonder if we can create a module that just requires each widget and exports an array of these widgets.\r\n\r\n```\r\nmodule.exports = [\r\n    require('./path/to/widgetA'),\r\n    require('./path/to/widgetB',\r\n    etc.\r\n];\r\n```\r\n\r\nThis file can then perhaps be overwritten using an alias in browserify or requirejs config. That alias could be a optional configuration setting to bring widget loading flexibility back."}}