{"action":"created","issue":{"url":"https://api.github.com/repos/substack/watchify/issues/224","labels_url":"https://api.github.com/repos/substack/watchify/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/substack/watchify/issues/224/comments","events_url":"https://api.github.com/repos/substack/watchify/issues/224/events","html_url":"https://github.com/substack/watchify/issues/224","id":83017469,"number":224,"title":"Watchify doesn't rebuild on OSX","user":{"login":"jenil27","id":971411,"avatar_url":"https://avatars.githubusercontent.com/u/971411?v=3","gravatar_id":"","url":"https://api.github.com/users/jenil27","html_url":"https://github.com/jenil27","followers_url":"https://api.github.com/users/jenil27/followers","following_url":"https://api.github.com/users/jenil27/following{/other_user}","gists_url":"https://api.github.com/users/jenil27/gists{/gist_id}","starred_url":"https://api.github.com/users/jenil27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenil27/subscriptions","organizations_url":"https://api.github.com/users/jenil27/orgs","repos_url":"https://api.github.com/users/jenil27/repos","events_url":"https://api.github.com/users/jenil27/events{/privacy}","received_events_url":"https://api.github.com/users/jenil27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-31T06:31:42Z","updated_at":"2015-06-06T14:02:41Z","closed_at":null,"body":"Hello,\r\n\r\nMy config:\r\n\"browserify\": \"10.2.3\"\r\n\"gulp\": \"3.8.11\"\r\n\"reactify\": \"1.1.1\"\r\n\"watchify\": \"3.2.1\"\r\n\r\nI am trying to do something like this:\r\n\r\n```\r\ngulp.task('browserify', function() {\r\n    var bundler = watchify(browserify(config.viewsPath + '/index.js', watchify.args));\r\n    bundler.transform(reactify);\r\n    bundler.on('update', rebundle);\r\n\r\n    function rebundle() {\r\n        return bundler.bundle()\r\n            .on('error', gutil.log.bind(gutil, 'Browserify Error'))\r\n            .pipe(source('views.js'))\r\n            .pipe(gulp.dest(config.jsPath));\r\n    }\r\n\r\n    return rebundle();\r\n});\r\n```\r\n\r\nPS: I did try this https://github.com/substack/watchify#rebuilds-on-os-x-never-trigger\r\n\r\nAny help would be appreciated.\r\n"},"comment":{"url":"https://api.github.com/repos/substack/watchify/issues/comments/109581588","html_url":"https://github.com/substack/watchify/issues/224#issuecomment-109581588","issue_url":"https://api.github.com/repos/substack/watchify/issues/224","id":109581588,"user":{"login":"mkalish","id":1225895,"avatar_url":"https://avatars.githubusercontent.com/u/1225895?v=3","gravatar_id":"","url":"https://api.github.com/users/mkalish","html_url":"https://github.com/mkalish","followers_url":"https://api.github.com/users/mkalish/followers","following_url":"https://api.github.com/users/mkalish/following{/other_user}","gists_url":"https://api.github.com/users/mkalish/gists{/gist_id}","starred_url":"https://api.github.com/users/mkalish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkalish/subscriptions","organizations_url":"https://api.github.com/users/mkalish/orgs","repos_url":"https://api.github.com/users/mkalish/repos","events_url":"https://api.github.com/users/mkalish/events{/privacy}","received_events_url":"https://api.github.com/users/mkalish/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T14:02:41Z","updated_at":"2015-06-06T14:02:41Z","body":"I ran into a similar issue and resolved it by setting the poling flag.\r\n\r\n```javascript\r\nvar bundler = watchify(browserify(config.viewsPath + '/index.js', watchify.args), {poll: true});\r\n```"}}