{"action":"created","issue":{"url":"https://api.github.com/repos/velesin/jasmine-jquery/issues/233","labels_url":"https://api.github.com/repos/velesin/jasmine-jquery/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/velesin/jasmine-jquery/issues/233/comments","events_url":"https://api.github.com/repos/velesin/jasmine-jquery/issues/233/events","html_url":"https://github.com/velesin/jasmine-jquery/issues/233","id":57719576,"number":233,"title":"This library is not browserify-able.","user":{"login":"benlakey","id":712322,"avatar_url":"https://avatars.githubusercontent.com/u/712322?v=3","gravatar_id":"","url":"https://api.github.com/users/benlakey","html_url":"https://github.com/benlakey","followers_url":"https://api.github.com/users/benlakey/followers","following_url":"https://api.github.com/users/benlakey/following{/other_user}","gists_url":"https://api.github.com/users/benlakey/gists{/gist_id}","starred_url":"https://api.github.com/users/benlakey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlakey/subscriptions","organizations_url":"https://api.github.com/users/benlakey/orgs","repos_url":"https://api.github.com/users/benlakey/repos","events_url":"https://api.github.com/users/benlakey/events{/privacy}","received_events_url":"https://api.github.com/users/benlakey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-15T06:13:41Z","updated_at":"2015-02-26T22:42:05Z","closed_at":null,"body":"This module can't be brought into a [browserify](http://browserify.org/) project because it isn't a CommonJS compatible module. It also can't be easily shimmed because it doesn't correspond to any module system (AMD, CommonJS, UMD) and instead just attaches things to the global window objects. \r\n\r\nAny plans on module-ing this library?"},"comment":{"url":"https://api.github.com/repos/velesin/jasmine-jquery/issues/comments/76291052","html_url":"https://github.com/velesin/jasmine-jquery/issues/233#issuecomment-76291052","issue_url":"https://api.github.com/repos/velesin/jasmine-jquery/issues/233","id":76291052,"user":{"login":"nertzy","id":2488,"avatar_url":"https://avatars.githubusercontent.com/u/2488?v=3","gravatar_id":"","url":"https://api.github.com/users/nertzy","html_url":"https://github.com/nertzy","followers_url":"https://api.github.com/users/nertzy/followers","following_url":"https://api.github.com/users/nertzy/following{/other_user}","gists_url":"https://api.github.com/users/nertzy/gists{/gist_id}","starred_url":"https://api.github.com/users/nertzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nertzy/subscriptions","organizations_url":"https://api.github.com/users/nertzy/orgs","repos_url":"https://api.github.com/users/nertzy/repos","events_url":"https://api.github.com/users/nertzy/events{/privacy}","received_events_url":"https://api.github.com/users/nertzy/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T22:42:05Z","updated_at":"2015-02-26T22:42:05Z","body":"For now you can put together a workaround using [browserify-shim](https://github.com/thlorenz/browserify-shim).\r\n\r\nIn your package.json:\r\n```json\r\n  \"browser\": {\r\n    \"jasmine-jquery\": \"./node_modules/jasmine-jquery/lib/jasmine-jquery.js\"\r\n  },\r\n  \"browserify-shim\": {\r\n    \"jasmine-jquery\": {\r\n      \"depends\": [\r\n        \"jquery:jQuery\"\r\n      ]\r\n    }\r\n  },\r\n```\r\n\r\nIn a Jasmine helper file:\r\n```js\r\nrequire('jasmine-jquery');\r\n```"}}