{"action":"created","issue":{"url":"https://api.github.com/repos/axa-ch/style-guide/issues/528","repository_url":"https://api.github.com/repos/axa-ch/style-guide","labels_url":"https://api.github.com/repos/axa-ch/style-guide/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/axa-ch/style-guide/issues/528/comments","events_url":"https://api.github.com/repos/axa-ch/style-guide/issues/528/events","html_url":"https://github.com/axa-ch/style-guide/pull/528","id":170609626,"number":528,"title":"replaced gulp-watch-sequence by runSequence","user":{"login":"AndyOGo","id":914443,"avatar_url":"https://avatars.githubusercontent.com/u/914443?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyOGo","html_url":"https://github.com/AndyOGo","followers_url":"https://api.github.com/users/AndyOGo/followers","following_url":"https://api.github.com/users/AndyOGo/following{/other_user}","gists_url":"https://api.github.com/users/AndyOGo/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyOGo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyOGo/subscriptions","organizations_url":"https://api.github.com/users/AndyOGo/orgs","repos_url":"https://api.github.com/users/AndyOGo/repos","events_url":"https://api.github.com/users/AndyOGo/events{/privacy}","received_events_url":"https://api.github.com/users/AndyOGo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/axa-ch/style-guide/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/axa-ch/style-guide/labels/hacking","name":"hacking","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"davidknezic","id":198988,"avatar_url":"https://avatars.githubusercontent.com/u/198988?v=3","gravatar_id":"","url":"https://api.github.com/users/davidknezic","html_url":"https://github.com/davidknezic","followers_url":"https://api.github.com/users/davidknezic/followers","following_url":"https://api.github.com/users/davidknezic/following{/other_user}","gists_url":"https://api.github.com/users/davidknezic/gists{/gist_id}","starred_url":"https://api.github.com/users/davidknezic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidknezic/subscriptions","organizations_url":"https://api.github.com/users/davidknezic/orgs","repos_url":"https://api.github.com/users/davidknezic/repos","events_url":"https://api.github.com/users/davidknezic/events{/privacy}","received_events_url":"https://api.github.com/users/davidknezic/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidknezic","id":198988,"avatar_url":"https://avatars.githubusercontent.com/u/198988?v=3","gravatar_id":"","url":"https://api.github.com/users/davidknezic","html_url":"https://github.com/davidknezic","followers_url":"https://api.github.com/users/davidknezic/followers","following_url":"https://api.github.com/users/davidknezic/following{/other_user}","gists_url":"https://api.github.com/users/davidknezic/gists{/gist_id}","starred_url":"https://api.github.com/users/davidknezic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidknezic/subscriptions","organizations_url":"https://api.github.com/users/davidknezic/orgs","repos_url":"https://api.github.com/users/davidknezic/repos","events_url":"https://api.github.com/users/davidknezic/events{/privacy}","received_events_url":"https://api.github.com/users/davidknezic/received_events","type":"User","site_admin":false},{"login":"sventschui","id":512692,"avatar_url":"https://avatars.githubusercontent.com/u/512692?v=3","gravatar_id":"","url":"https://api.github.com/users/sventschui","html_url":"https://github.com/sventschui","followers_url":"https://api.github.com/users/sventschui/followers","following_url":"https://api.github.com/users/sventschui/following{/other_user}","gists_url":"https://api.github.com/users/sventschui/gists{/gist_id}","starred_url":"https://api.github.com/users/sventschui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sventschui/subscriptions","organizations_url":"https://api.github.com/users/sventschui/orgs","repos_url":"https://api.github.com/users/sventschui/repos","events_url":"https://api.github.com/users/sventschui/events{/privacy}","received_events_url":"https://api.github.com/users/sventschui/received_events","type":"User","site_admin":false},{"login":"AndyOGo","id":914443,"avatar_url":"https://avatars.githubusercontent.com/u/914443?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyOGo","html_url":"https://github.com/AndyOGo","followers_url":"https://api.github.com/users/AndyOGo/followers","following_url":"https://api.github.com/users/AndyOGo/following{/other_user}","gists_url":"https://api.github.com/users/AndyOGo/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyOGo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyOGo/subscriptions","organizations_url":"https://api.github.com/users/AndyOGo/orgs","repos_url":"https://api.github.com/users/AndyOGo/repos","events_url":"https://api.github.com/users/AndyOGo/events{/privacy}","received_events_url":"https://api.github.com/users/AndyOGo/received_events","type":"User","site_admin":false},{"login":"elessar-ch","id":7779684,"avatar_url":"https://avatars.githubusercontent.com/u/7779684?v=3","gravatar_id":"","url":"https://api.github.com/users/elessar-ch","html_url":"https://github.com/elessar-ch","followers_url":"https://api.github.com/users/elessar-ch/followers","following_url":"https://api.github.com/users/elessar-ch/following{/other_user}","gists_url":"https://api.github.com/users/elessar-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/elessar-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elessar-ch/subscriptions","organizations_url":"https://api.github.com/users/elessar-ch/orgs","repos_url":"https://api.github.com/users/elessar-ch/repos","events_url":"https://api.github.com/users/elessar-ch/events{/privacy}","received_events_url":"https://api.github.com/users/elessar-ch/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-08-11T09:59:36Z","updated_at":"2016-08-11T10:00:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/axa-ch/style-guide/pulls/528","html_url":"https://github.com/axa-ch/style-guide/pull/528","diff_url":"https://github.com/axa-ch/style-guide/pull/528.diff","patch_url":"https://github.com/axa-ch/style-guide/pull/528.patch"},"body":"possibly fixes #527 "},"comment":{"url":"https://api.github.com/repos/axa-ch/style-guide/issues/comments/239119769","html_url":"https://github.com/axa-ch/style-guide/pull/528#issuecomment-239119769","issue_url":"https://api.github.com/repos/axa-ch/style-guide/issues/528","id":239119769,"user":{"login":"AndyOGo","id":914443,"avatar_url":"https://avatars.githubusercontent.com/u/914443?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyOGo","html_url":"https://github.com/AndyOGo","followers_url":"https://api.github.com/users/AndyOGo/followers","following_url":"https://api.github.com/users/AndyOGo/following{/other_user}","gists_url":"https://api.github.com/users/AndyOGo/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyOGo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyOGo/subscriptions","organizations_url":"https://api.github.com/users/AndyOGo/orgs","repos_url":"https://api.github.com/users/AndyOGo/repos","events_url":"https://api.github.com/users/AndyOGo/events{/privacy}","received_events_url":"https://api.github.com/users/AndyOGo/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T10:00:44Z","updated_at":"2016-08-11T10:00:44Z","body":"seems to be an issue with [gulp-watch-sequence](https://www.npmjs.com/package/gulp-watch-sequence)\r\n\r\nAnyway I checked the docs and as I understood it it is a tool meant to prevent executing same task dependencies multiple times if different watcher fires at the same or similar time.\r\nE.g.: your two tasks `js` and `css`, both need to trigger `html` and `reload` tasks after.\r\nIn case you have change js and css files and hit \"save-all\" in your IDE, each of those would trigger `html` and `reload` resulting in 2 calls. Though one would be sufficient.\r\n\r\nTherefore the `sequence(300)` returns a queue which can be used in multiple watchers. We don't do this, we just use it in one watcher.\r\n\r\nSo I think we can replace that code with something like that:\r\n```js\r\nwatch([\r\n    './jquery/**/*',\r\n  ], (files, cb) => runSequence(['scripts', 'docs-scripts'], cb))\r\n  .on('error', err => errorify(err.message, 'scripts'))\r\n```"}}
{"actor":{"display_login":"AndyOGo"}}