{"action":"closed","issue":{"url":"https://api.github.com/repos/substack/watchify/issues/329","repository_url":"https://api.github.com/repos/substack/watchify","labels_url":"https://api.github.com/repos/substack/watchify/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/substack/watchify/issues/329/comments","events_url":"https://api.github.com/repos/substack/watchify/issues/329/events","html_url":"https://github.com/substack/watchify/issues/329","id":173749212,"number":329,"title":"Building same file multiple times","user":{"login":"bushd","id":324690,"avatar_url":"https://avatars.githubusercontent.com/u/324690?v=3","gravatar_id":"","url":"https://api.github.com/users/bushd","html_url":"https://github.com/bushd","followers_url":"https://api.github.com/users/bushd/followers","following_url":"https://api.github.com/users/bushd/following{/other_user}","gists_url":"https://api.github.com/users/bushd/gists{/gist_id}","starred_url":"https://api.github.com/users/bushd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bushd/subscriptions","organizations_url":"https://api.github.com/users/bushd/orgs","repos_url":"https://api.github.com/users/bushd/repos","events_url":"https://api.github.com/users/bushd/events{/privacy}","received_events_url":"https://api.github.com/users/bushd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T11:00:54Z","updated_at":"2016-08-29T13:11:06Z","closed_at":"2016-08-29T13:11:06Z","body":"Hi,\r\n\r\nquick setup info:\r\nI have multiple javascript files that are watched, let's call them a.js, b.js and c.js. These files are never loaded at the same time by the browser. \r\nI have some modules that are part of multiple javascript files. Let's call them m1 and m2\r\nWhen I modify these modules it builds the matching files - all good.\r\na.js contains m1 and m2, b.js m1 and c.js m3\r\n\r\nI change m1 and it builds a.js and b.js\r\nI change m2 and it builds b.js and c.js\r\n\r\nIf i change a m1 while it is still building b.js (for example)\r\nit builds a.js, b.js and b.js\r\n\r\nthis gets worse the more files i touch and the more my modules are reused. Since the build takes quite some time, it is simply not feasible to wait for building to complete before I touch another file.\r\n\r\nIs there a way to prevent such a behaviour? Can't watchify see that a file is already building and either wait or stop the initial build? And why is it building the same files multiple times?\r\n\r\n(edit: I run watchify/browserify via gulp, in case that matters)"}}
{"actor":{"display_login":"bushd"}}