{"action":"created","issue":{"url":"https://api.github.com/repos/2gis/mapsapi/issues/146","labels_url":"https://api.github.com/repos/2gis/mapsapi/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/2gis/mapsapi/issues/146/comments","events_url":"https://api.github.com/repos/2gis/mapsapi/issues/146/events","html_url":"https://github.com/2gis/mapsapi/pull/146","id":54853838,"number":146,"title":"Разделил gulpfile на задачи","user":{"login":"Trufi","id":3996552,"avatar_url":"https://avatars.githubusercontent.com/u/3996552?v=3","gravatar_id":"","url":"https://api.github.com/users/Trufi","html_url":"https://github.com/Trufi","followers_url":"https://api.github.com/users/Trufi/followers","following_url":"https://api.github.com/users/Trufi/following{/other_user}","gists_url":"https://api.github.com/users/Trufi/gists{/gist_id}","starred_url":"https://api.github.com/users/Trufi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trufi/subscriptions","organizations_url":"https://api.github.com/users/Trufi/orgs","repos_url":"https://api.github.com/users/Trufi/repos","events_url":"https://api.github.com/users/Trufi/events{/privacy}","received_events_url":"https://api.github.com/users/Trufi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/2gis/mapsapi/labels/CodeReview","name":"CodeReview","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/2gis/mapsapi/milestones/10","labels_url":"https://api.github.com/repos/2gis/mapsapi/milestones/10/labels","id":914606,"number":10,"title":"Release 2.0.33","description":"","creator":{"login":"ilfa","id":1009415,"avatar_url":"https://avatars.githubusercontent.com/u/1009415?v=3","gravatar_id":"","url":"https://api.github.com/users/ilfa","html_url":"https://github.com/ilfa","followers_url":"https://api.github.com/users/ilfa/followers","following_url":"https://api.github.com/users/ilfa/following{/other_user}","gists_url":"https://api.github.com/users/ilfa/gists{/gist_id}","starred_url":"https://api.github.com/users/ilfa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilfa/subscriptions","organizations_url":"https://api.github.com/users/ilfa/orgs","repos_url":"https://api.github.com/users/ilfa/repos","events_url":"https://api.github.com/users/ilfa/events{/privacy}","received_events_url":"https://api.github.com/users/ilfa/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2014-12-25T09:08:25Z","updated_at":"2015-01-21T05:47:00Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-01-20T08:01:44Z","updated_at":"2015-01-21T09:13:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/2gis/mapsapi/pulls/146","html_url":"https://github.com/2gis/mapsapi/pull/146","diff_url":"https://github.com/2gis/mapsapi/pull/146.diff","patch_url":"https://github.com/2gis/mapsapi/pull/146.patch"},"body":"Предлагаю вариант начального рефакторинга gulpfile.\r\n\r\nИзменения:\r\n* Каждая задача лежит в своём файле в папке `gulp/tasks`.\r\n* Все вспомогительные функции кладутся в папку `gulp/util`.\r\n* По идеи все пути, globs и другие статичные переменные должны складываться в `gulp/config.js`, но пока так оставил.\r\n* Выпилил `run-sequence` т.к. противоречит идеологии галпа.\r\n\r\nПока на этом остановился, в дальнейшем можно заняться рефакторингом каждой из задач. Какие-то best practice по структуре и организации галпа я не нашёл, если кто-то знает с удовольствием выслушаю или посмотрю. Больших проектов с галпом тоже сложно найти, перерыл несколько с фейсбука и пр. Как мне кажется такой вариант организации упрощает навигацию по задачам и уменьшает запутанность кода.\r\n\r\n/discuss =)"},"comment":{"url":"https://api.github.com/repos/2gis/mapsapi/issues/comments/70805843","html_url":"https://github.com/2gis/mapsapi/pull/146#issuecomment-70805843","issue_url":"https://api.github.com/repos/2gis/mapsapi/issues/146","id":70805843,"user":{"login":"Trufi","id":3996552,"avatar_url":"https://avatars.githubusercontent.com/u/3996552?v=3","gravatar_id":"","url":"https://api.github.com/users/Trufi","html_url":"https://github.com/Trufi","followers_url":"https://api.github.com/users/Trufi/followers","following_url":"https://api.github.com/users/Trufi/following{/other_user}","gists_url":"https://api.github.com/users/Trufi/gists{/gist_id}","starred_url":"https://api.github.com/users/Trufi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trufi/subscriptions","organizations_url":"https://api.github.com/users/Trufi/orgs","repos_url":"https://api.github.com/users/Trufi/repos","events_url":"https://api.github.com/users/Trufi/events{/privacy}","received_events_url":"https://api.github.com/users/Trufi/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T09:13:22Z","updated_at":"2015-01-21T09:13:22Z","body":"Давайте тогда после релиза сольем, чтобы можно было делать более мелкие изменения."}}