{"action":"created","issue":{"url":"https://api.github.com/repos/Karnith/machinepack-sailsgulpify/issues/5","labels_url":"https://api.github.com/repos/Karnith/machinepack-sailsgulpify/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Karnith/machinepack-sailsgulpify/issues/5/comments","events_url":"https://api.github.com/repos/Karnith/machinepack-sailsgulpify/issues/5/events","html_url":"https://github.com/Karnith/machinepack-sailsgulpify/issues/5","id":114321332,"number":5,"title":"Livereload causes crash on any change","user":{"login":"austinmao","id":6487975,"avatar_url":"https://avatars.githubusercontent.com/u/6487975?v=3","gravatar_id":"","url":"https://api.github.com/users/austinmao","html_url":"https://github.com/austinmao","followers_url":"https://api.github.com/users/austinmao/followers","following_url":"https://api.github.com/users/austinmao/following{/other_user}","gists_url":"https://api.github.com/users/austinmao/gists{/gist_id}","starred_url":"https://api.github.com/users/austinmao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinmao/subscriptions","organizations_url":"https://api.github.com/users/austinmao/orgs","repos_url":"https://api.github.com/users/austinmao/repos","events_url":"https://api.github.com/users/austinmao/events{/privacy}","received_events_url":"https://api.github.com/users/austinmao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-30T17:50:03Z","updated_at":"2015-10-30T18:20:42Z","closed_at":null,"body":"After follow install instructions and running `gulp` at the command line, any file change results in the following:\r\n\r\n```\r\n/Users/austinmao/Sites/sails-mongoose-boilerplate/tasks-gulp/config/watch.js:19\r\n\t\t\t\t\tserver.changed(file.path);\r\n\t\t\t\t\t       ^\r\n\r\nTypeError: server.changed is not a function\r\n  at EventEmitter.<anonymous> (/Users/austinmao/Sites/sails-mongoose-boilerplate/tasks-gulp/config/watch.js:19:13)\r\n  at emitOne (events.js:77:13)\r\n  at EventEmitter.emit (events.js:169:7)\r\n  at Gaze.<anonymous> (/Users/austinmao/Sites/sails-mongoose-boilerplate/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/index.js:17:11)\r\n  at emitTwo (events.js:87:13)\r\n  at Gaze.emit (events.js:172:7)\r\n  at Gaze.emit (/Users/austinmao/Sites/sails-mongoose-boilerplate/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:129:32)\r\n  at /Users/austinmao/Sites/sails-mongoose-boilerplate/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:415:16\r\n  at StatWatcher._pollers.(anonymous function) (/Users/austinmao/Sites/sails-mongoose-boilerplate/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:326:7)\r\n  at emitTwo (events.js:87:13)\r\n  at StatWatcher.emit (events.js:172:7)\r\n  at StatWatcher._handle.onchange (fs.js:1291:10)\r\n```"},"comment":{"url":"https://api.github.com/repos/Karnith/machinepack-sailsgulpify/issues/comments/152608056","html_url":"https://github.com/Karnith/machinepack-sailsgulpify/issues/5#issuecomment-152608056","issue_url":"https://api.github.com/repos/Karnith/machinepack-sailsgulpify/issues/5","id":152608056,"user":{"login":"Karnith","id":5819480,"avatar_url":"https://avatars.githubusercontent.com/u/5819480?v=3","gravatar_id":"","url":"https://api.github.com/users/Karnith","html_url":"https://github.com/Karnith","followers_url":"https://api.github.com/users/Karnith/followers","following_url":"https://api.github.com/users/Karnith/following{/other_user}","gists_url":"https://api.github.com/users/Karnith/gists{/gist_id}","starred_url":"https://api.github.com/users/Karnith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karnith/subscriptions","organizations_url":"https://api.github.com/users/Karnith/orgs","repos_url":"https://api.github.com/users/Karnith/repos","events_url":"https://api.github.com/users/Karnith/events{/privacy}","received_events_url":"https://api.github.com/users/Karnith/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T18:20:42Z","updated_at":"2015-10-30T18:20:42Z","body":"yeah, live reload decided to completely change their api....\r\n\r\nTry this as a workaround until I update the module\r\n\r\nwatch.js\r\n```\r\n/**\r\n * Run predefined tasks whenever watched file patterns are added, changed or deleted.\r\n *\r\n * ---------------------------------------------------------------\r\n *\r\n * Watch for changes on\r\n * - files in the `assets` folder\r\n * - the `tasks/pipeline.js` file\r\n * and re-run the appropriate tasks.\r\n *\r\n *\r\n */\r\nmodule.exports = function(gulp, plugins, growl) {\r\n\t//var server = plugins.livereload();\r\n\tgulp.task('watch:api', function() {\r\n\t\t// Watch Style files\r\n    var server = plugins.livereload();\r\n\t\treturn gulp.watch('api/**/*', ['syncAssets']);\r\n\t\t\t\t//.on('change', function(file) {\r\n\t\t\t\t//\tserver.changed(file.path);\r\n\t\t\t\t//});\r\n\t});\r\n\r\n\tgulp.task('watch:assets', function() {\r\n\t\t// Watch assets\r\n    var server = plugins.livereload();\r\n\t\treturn gulp.watch(['assets/**/*', 'tasks/pipeline.js'], ['syncAssets']);\r\n\t\t\t\t//.on('change', function(file) {\r\n\t\t\t\t//\tserver.changed(file.path);\r\n\t\t\t\t//});\r\n\t});\r\n\r\n};\r\n```\r\nLet me know how you get on..."}}