{"action":"created","issue":{"url":"https://api.github.com/repos/szwacz/electron-boilerplate/issues/12","repository_url":"https://api.github.com/repos/szwacz/electron-boilerplate","labels_url":"https://api.github.com/repos/szwacz/electron-boilerplate/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/szwacz/electron-boilerplate/issues/12/comments","events_url":"https://api.github.com/repos/szwacz/electron-boilerplate/issues/12/events","html_url":"https://github.com/szwacz/electron-boilerplate/issues/12","id":90149750,"number":12,"title":"The `watch` tasks seems to be running in the background even after the app is closed","user":{"login":"floydpink","id":171072,"avatar_url":"https://avatars.githubusercontent.com/u/171072?v=3","gravatar_id":"","url":"https://api.github.com/users/floydpink","html_url":"https://github.com/floydpink","followers_url":"https://api.github.com/users/floydpink/followers","following_url":"https://api.github.com/users/floydpink/following{/other_user}","gists_url":"https://api.github.com/users/floydpink/gists{/gist_id}","starred_url":"https://api.github.com/users/floydpink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floydpink/subscriptions","organizations_url":"https://api.github.com/users/floydpink/orgs","repos_url":"https://api.github.com/users/floydpink/repos","events_url":"https://api.github.com/users/floydpink/events{/privacy}","received_events_url":"https://api.github.com/users/floydpink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-06-22T16:44:26Z","updated_at":"2016-02-26T11:58:48Z","closed_at":null,"body":"Try these steps to reproduce this issue:\r\n\r\n1. Clone the repo\r\n2. Run `npm install` at the root of the repo\r\n3. Run `npm start` to start the electron app\r\n4. Close the app - the terminal window will also show the prompt (giving the indication that all the background tasks are terminated)\r\n5. Make a trivial whitespace change to `/app/hello_world/hello_universe.js` and save\r\n6. Notice that the terminal window will start the `transpile-watch` task\r\n\r\n```plain\r\n$ [12:37:26] Starting 'transpile-watch'...\r\n[12:37:26] Finished 'transpile-watch' after 47 ms\r\n```\r\n\r\nTesting this with the [latest commit as of now](https://github.com/szwacz/electron-boilerplate/commit/db6a4f7201533fa8003e193a0ff6ab4670f8f875) on a Mac, with node and npm versions as below:\r\n\r\n```plain\r\n$ node -v\r\nv0.12.4\r\n\r\n$ npm -v\r\n2.11.3\r\n```"},"comment":{"url":"https://api.github.com/repos/szwacz/electron-boilerplate/issues/comments/189244430","html_url":"https://github.com/szwacz/electron-boilerplate/issues/12#issuecomment-189244430","issue_url":"https://api.github.com/repos/szwacz/electron-boilerplate/issues/12","id":189244430,"user":{"login":"carlosperate","id":4189262,"avatar_url":"https://avatars.githubusercontent.com/u/4189262?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosperate","html_url":"https://github.com/carlosperate","followers_url":"https://api.github.com/users/carlosperate/followers","following_url":"https://api.github.com/users/carlosperate/following{/other_user}","gists_url":"https://api.github.com/users/carlosperate/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosperate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosperate/subscriptions","organizations_url":"https://api.github.com/users/carlosperate/orgs","repos_url":"https://api.github.com/users/carlosperate/repos","events_url":"https://api.github.com/users/carlosperate/events{/privacy}","received_events_url":"https://api.github.com/users/carlosperate/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T11:58:48Z","updated_at":"2016-02-26T11:58:48Z","body":"If I remember correctly `\"tree-kill` was added exclusively to try to fix this issue, so if this PR offers a solution that. in addition, allows us to remove a dependency it sounds good to me."}}