{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/186","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/186/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/186/events","html_url":"https://github.com/driftyco/ionic-cli/issues/186","id":54499404,"number":186,"title":"gulp watch doesn't quit (or get killed) when ionic serve is \"quit\", but does with Ctrl-C","user":{"login":"sbull","id":1115369,"avatar_url":"https://avatars.githubusercontent.com/u/1115369?v=3","gravatar_id":"","url":"https://api.github.com/users/sbull","html_url":"https://github.com/sbull","followers_url":"https://api.github.com/users/sbull/followers","following_url":"https://api.github.com/users/sbull/following{/other_user}","gists_url":"https://api.github.com/users/sbull/gists{/gist_id}","starred_url":"https://api.github.com/users/sbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbull/subscriptions","organizations_url":"https://api.github.com/users/sbull/orgs","repos_url":"https://api.github.com/users/sbull/repos","events_url":"https://api.github.com/users/sbull/events{/privacy}","received_events_url":"https://api.github.com/users/sbull/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jbavari","id":1414692,"avatar_url":"https://avatars.githubusercontent.com/u/1414692?v=3","gravatar_id":"","url":"https://api.github.com/users/jbavari","html_url":"https://github.com/jbavari","followers_url":"https://api.github.com/users/jbavari/followers","following_url":"https://api.github.com/users/jbavari/following{/other_user}","gists_url":"https://api.github.com/users/jbavari/gists{/gist_id}","starred_url":"https://api.github.com/users/jbavari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbavari/subscriptions","organizations_url":"https://api.github.com/users/jbavari/orgs","repos_url":"https://api.github.com/users/jbavari/repos","events_url":"https://api.github.com/users/jbavari/events{/privacy}","received_events_url":"https://api.github.com/users/jbavari/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/driftyco/ionic-cli/milestones/3","html_url":"https://github.com/driftyco/ionic-cli/milestones/1.3.3","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/milestones/3/labels","id":931586,"number":3,"title":"1.3.3","description":"Features and fixes","creator":{"login":"jbavari","id":1414692,"avatar_url":"https://avatars.githubusercontent.com/u/1414692?v=3","gravatar_id":"","url":"https://api.github.com/users/jbavari","html_url":"https://github.com/jbavari","followers_url":"https://api.github.com/users/jbavari/followers","following_url":"https://api.github.com/users/jbavari/following{/other_user}","gists_url":"https://api.github.com/users/jbavari/gists{/gist_id}","starred_url":"https://api.github.com/users/jbavari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbavari/subscriptions","organizations_url":"https://api.github.com/users/jbavari/orgs","repos_url":"https://api.github.com/users/jbavari/repos","events_url":"https://api.github.com/users/jbavari/events{/privacy}","received_events_url":"https://api.github.com/users/jbavari/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":14,"state":"closed","created_at":"2015-01-12T14:54:59Z","updated_at":"2015-01-29T20:29:04Z","due_on":"2015-01-23T07:00:00Z","closed_at":"2015-01-29T20:29:04Z"},"comments":8,"created_at":"2015-01-15T20:24:39Z","updated_at":"2015-04-28T20:07:10Z","closed_at":"2015-01-19T21:39:34Z","body":"I am using gulp.watch in my project, and running with \"ionic serve\". When I run \"ionic serve\", and eventually quit using the command \"q\", the gulp process that ionic kicked off never stops. However, when I quit by pressing Ctrl-C, the gulp process gets killed apparently immediately.\r\n\r\nMy ionic.project contains:\r\n```\r\n  \"gulpStartupTasks\": [\r\n    \"watch\"\r\n  ],\r\n```\r\n\r\nand gulpfile.js contains the defaults:\r\n```\r\ngulp.task('sass', function(done) {\r\n  gulp.src('./scss/ionic.app.scss')\r\n    .pipe(sass())\r\n    .pipe(gulp.dest('./www/css/'))\r\n    .pipe(minifyCss({\r\n      keepSpecialComments: 0\r\n    }))\r\n    .pipe(rename({ extname: '.min.css' }))\r\n    .pipe(gulp.dest('./www/css/'))\r\n    .on('end', done);\r\n});\r\n\r\ngulp.task('watch', function() {\r\n  gulp.watch(paths.sass, ['sass']);\r\n});\r\n```\r\n\r\nI don't think the problem occurs if the \"quit\" command is used before the \"Finished 'watch'\" log message is reported.\r\n\r\nI had expected that using \"quit\" would do more cleanup than using Ctrl-C, but it seems that \"quit\" leaves an abandoned gulp process running, whereas Ctrl-C kills it.\r\n\r\n\r\n\"ionic info\":\r\n\r\nYour system information:\r\n\r\nOS: Distributor ID:     Ubuntu Description:     Ubuntu 12.04.3 LTS\r\nNode Version: v0.10.33\r\nCordova CLI: 4.1.2\r\nIonic Version: 1.0.0-beta.13\r\nIonic CLI Version: 1.3.1\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/comments/97192039","html_url":"https://github.com/driftyco/ionic-cli/issues/186#issuecomment-97192039","issue_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/186","id":97192039,"user":{"login":"jbavari","id":1414692,"avatar_url":"https://avatars.githubusercontent.com/u/1414692?v=3","gravatar_id":"","url":"https://api.github.com/users/jbavari","html_url":"https://github.com/jbavari","followers_url":"https://api.github.com/users/jbavari/followers","following_url":"https://api.github.com/users/jbavari/following{/other_user}","gists_url":"https://api.github.com/users/jbavari/gists{/gist_id}","starred_url":"https://api.github.com/users/jbavari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbavari/subscriptions","organizations_url":"https://api.github.com/users/jbavari/orgs","repos_url":"https://api.github.com/users/jbavari/repos","events_url":"https://api.github.com/users/jbavari/events{/privacy}","received_events_url":"https://api.github.com/users/jbavari/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T20:07:10Z","updated_at":"2015-04-28T20:07:10Z","body":"Woops - I was wrong.The fix is back in place, should be out in the next release."}}