{"action":"created","comment":{"url":"https://api.github.com/repos/tars/tars/pulls/comments/37492208","id":37492208,"diff_hunk":"@@ -1,43 +1,36 @@\n-var gulp = require('gulp');\n-var chokidar = require('chokidar');\n-var tarsConfig = require('../../../tars-config');\n-var watcherLog = require('../../helpers/watcher-log');\n+'use strict';\n \n-/**\n- * Watcher for js-files before and after modules js\n- * @param  {Object} watchOptions\n- */\n-module.exports = function () {\n-    var jsPathsToConcatBeforeModulesJs = tarsConfig.jsPathsToConcatBeforeModulesJs,\n-        jsPathsToConcatAfterModulesJs = tarsConfig.jsPathsToConcatAfterModulesJs,\n-        jsPathToWatch = [],\n-        i;\n+var tarsConfig = tars.config;\n+var staticFolderName = tarsConfig.fs.staticFolderName;\n+var watcherLog = tars.helpers.watcherLog;\n+\n+var jsPathToWatch = [];\n \n-    if (jsPathsToConcatBeforeModulesJs.length) {\n-        for (i = 0; i < jsPathsToConcatBeforeModulesJs.length; i++) {\n-            jsPathToWatch.push(jsPathsToConcatBeforeModulesJs[i]);\n-        }\n-    }\n+if (tarsConfig.jsPathsToConcatBeforeModulesJs.length) {\n+    jsPathToWatch = jsPathToWatch.concat(tarsConfig.jsPathsToConcatBeforeModulesJs);\n+}","path":"tars/watchers/js/all.js","position":29,"original_position":29,"commit_id":"9e57f1b98bd70d8852d5085e8fd641172d3254bc","original_commit_id":"9e57f1b98bd70d8852d5085e8fd641172d3254bc","user":{"login":"owanturist","id":8354670,"avatar_url":"https://avatars.githubusercontent.com/u/8354670?v=3","gravatar_id":"","url":"https://api.github.com/users/owanturist","html_url":"https://github.com/owanturist","followers_url":"https://api.github.com/users/owanturist/followers","following_url":"https://api.github.com/users/owanturist/following{/other_user}","gists_url":"https://api.github.com/users/owanturist/gists{/gist_id}","starred_url":"https://api.github.com/users/owanturist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owanturist/subscriptions","organizations_url":"https://api.github.com/users/owanturist/orgs","repos_url":"https://api.github.com/users/owanturist/repos","events_url":"https://api.github.com/users/owanturist/events{/privacy}","received_events_url":"https://api.github.com/users/owanturist/received_events","type":"User","site_admin":false},"body":"по моему круче будет без условия","created_at":"2015-08-20T03:28:31Z","updated_at":"2015-08-20T03:28:31Z","html_url":"https://github.com/tars/tars/pull/103#discussion_r37492208","pull_request_url":"https://api.github.com/repos/tars/tars/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/tars/tars/pulls/comments/37492208"},"html":{"href":"https://github.com/tars/tars/pull/103#discussion_r37492208"},"pull_request":{"href":"https://api.github.com/repos/tars/tars/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/tars/tars/pulls/103","id":42821662,"html_url":"https://github.com/tars/tars/pull/103","diff_url":"https://github.com/tars/tars/pull/103.diff","patch_url":"https://github.com/tars/tars/pull/103.patch","issue_url":"https://api.github.com/repos/tars/tars/issues/103","number":103,"state":"open","locked":false,"title":"Version 1.3.0 cli integration","user":{"login":"artem-malko","id":1823689,"avatar_url":"https://avatars.githubusercontent.com/u/1823689?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-malko","html_url":"https://github.com/artem-malko","followers_url":"https://api.github.com/users/artem-malko/followers","following_url":"https://api.github.com/users/artem-malko/following{/other_user}","gists_url":"https://api.github.com/users/artem-malko/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-malko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-malko/subscriptions","organizations_url":"https://api.github.com/users/artem-malko/orgs","repos_url":"https://api.github.com/users/artem-malko/repos","events_url":"https://api.github.com/users/artem-malko/events{/privacy}","received_events_url":"https://api.github.com/users/artem-malko/received_events","type":"User","site_admin":false},"body":"#98 ","created_at":"2015-08-19T14:35:09Z","updated_at":"2015-08-20T03:28:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"500ad338ac90f97476280e5036202cb6a38bbe71","assignee":null,"milestone":{"url":"https://api.github.com/repos/tars/tars/milestones/4","html_url":"https://github.com/tars/tars/milestones/Version%201.3.0","labels_url":"https://api.github.com/repos/tars/tars/milestones/4/labels","id":1007012,"number":4,"title":"Version 1.3.0","description":"All changes have to be in branch version-1.3.0","creator":{"login":"artem-malko","id":1823689,"avatar_url":"https://avatars.githubusercontent.com/u/1823689?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-malko","html_url":"https://github.com/artem-malko","followers_url":"https://api.github.com/users/artem-malko/followers","following_url":"https://api.github.com/users/artem-malko/following{/other_user}","gists_url":"https://api.github.com/users/artem-malko/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-malko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-malko/subscriptions","organizations_url":"https://api.github.com/users/artem-malko/orgs","repos_url":"https://api.github.com/users/artem-malko/repos","events_url":"https://api.github.com/users/artem-malko/events{/privacy}","received_events_url":"https://api.github.com/users/artem-malko/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":7,"state":"open","created_at":"2015-03-05T05:43:28Z","updated_at":"2015-08-19T14:35:10Z","due_on":"2015-08-22T19:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/tars/tars/pulls/103/commits","review_comments_url":"https://api.github.com/repos/tars/tars/pulls/103/comments","review_comment_url":"https://api.github.com/repos/tars/tars/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tars/tars/issues/103/comments","statuses_url":"https://api.github.com/repos/tars/tars/statuses/9e57f1b98bd70d8852d5085e8fd641172d3254bc","head":{"label":"tars:version-1.3.0-cli-integration","ref":"version-1.3.0-cli-integration","sha":"9e57f1b98bd70d8852d5085e8fd641172d3254bc","user":{"login":"tars","id":13495627,"avatar_url":"https://avatars.githubusercontent.com/u/13495627?v=3","gravatar_id":"","url":"https://api.github.com/users/tars","html_url":"https://github.com/tars","followers_url":"https://api.github.com/users/tars/followers","following_url":"https://api.github.com/users/tars/following{/other_user}","gists_url":"https://api.github.com/users/tars/gists{/gist_id}","starred_url":"https://api.github.com/users/tars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tars/subscriptions","organizations_url":"https://api.github.com/users/tars/orgs","repos_url":"https://api.github.com/users/tars/repos","events_url":"https://api.github.com/users/tars/events{/privacy}","received_events_url":"https://api.github.com/users/tars/received_events","type":"Organization","site_admin":false},"repo":{"id":20493429,"name":"tars","full_name":"tars/tars","owner":{"login":"tars","id":13495627,"avatar_url":"https://avatars.githubusercontent.com/u/13495627?v=3","gravatar_id":"","url":"https://api.github.com/users/tars","html_url":"https://github.com/tars","followers_url":"https://api.github.com/users/tars/followers","following_url":"https://api.github.com/users/tars/following{/other_user}","gists_url":"https://api.github.com/users/tars/gists{/gist_id}","starred_url":"https://api.github.com/users/tars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tars/subscriptions","organizations_url":"https://api.github.com/users/tars/orgs","repos_url":"https://api.github.com/users/tars/repos","events_url":"https://api.github.com/users/tars/events{/privacy}","received_events_url":"https://api.github.com/users/tars/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tars/tars","description":"Markup builder on gulp","fork":false,"url":"https://api.github.com/repos/tars/tars","forks_url":"https://api.github.com/repos/tars/tars/forks","keys_url":"https://api.github.com/repos/tars/tars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tars/tars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tars/tars/teams","hooks_url":"https://api.github.com/repos/tars/tars/hooks","issue_events_url":"https://api.github.com/repos/tars/tars/issues/events{/number}","events_url":"https://api.github.com/repos/tars/tars/events","assignees_url":"https://api.github.com/repos/tars/tars/assignees{/user}","branches_url":"https://api.github.com/repos/tars/tars/branches{/branch}","tags_url":"https://api.github.com/repos/tars/tars/tags","blobs_url":"https://api.github.com/repos/tars/tars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tars/tars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tars/tars/git/refs{/sha}","trees_url":"https://api.github.com/repos/tars/tars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tars/tars/statuses/{sha}","languages_url":"https://api.github.com/repos/tars/tars/languages","stargazers_url":"https://api.github.com/repos/tars/tars/stargazers","contributors_url":"https://api.github.com/repos/tars/tars/contributors","subscribers_url":"https://api.github.com/repos/tars/tars/subscribers","subscription_url":"https://api.github.com/repos/tars/tars/subscription","commits_url":"https://api.github.com/repos/tars/tars/commits{/sha}","git_commits_url":"https://api.github.com/repos/tars/tars/git/commits{/sha}","comments_url":"https://api.github.com/repos/tars/tars/comments{/number}","issue_comment_url":"https://api.github.com/repos/tars/tars/issues/comments{/number}","contents_url":"https://api.github.com/repos/tars/tars/contents/{+path}","compare_url":"https://api.github.com/repos/tars/tars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tars/tars/merges","archive_url":"https://api.github.com/repos/tars/tars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tars/tars/downloads","issues_url":"https://api.github.com/repos/tars/tars/issues{/number}","pulls_url":"https://api.github.com/repos/tars/tars/pulls{/number}","milestones_url":"https://api.github.com/repos/tars/tars/milestones{/number}","notifications_url":"https://api.github.com/repos/tars/tars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tars/tars/labels{/name}","releases_url":"https://api.github.com/repos/tars/tars/releases{/id}","created_at":"2014-06-04T17:44:16Z","updated_at":"2015-08-14T08:32:57Z","pushed_at":"2015-08-19T16:12:46Z","git_url":"git://github.com/tars/tars.git","ssh_url":"git@github.com:tars/tars.git","clone_url":"https://github.com/tars/tars.git","svn_url":"https://github.com/tars/tars","homepage":null,"size":2176,"stargazers_count":223,"watchers_count":223,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":40,"forks":43,"open_issues":40,"watchers":223,"default_branch":"master"}},"base":{"label":"tars:version-1.3.0","ref":"version-1.3.0","sha":"64f246c950410818e4db58af25a2678c752838eb","user":{"login":"tars","id":13495627,"avatar_url":"https://avatars.githubusercontent.com/u/13495627?v=3","gravatar_id":"","url":"https://api.github.com/users/tars","html_url":"https://github.com/tars","followers_url":"https://api.github.com/users/tars/followers","following_url":"https://api.github.com/users/tars/following{/other_user}","gists_url":"https://api.github.com/users/tars/gists{/gist_id}","starred_url":"https://api.github.com/users/tars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tars/subscriptions","organizations_url":"https://api.github.com/users/tars/orgs","repos_url":"https://api.github.com/users/tars/repos","events_url":"https://api.github.com/users/tars/events{/privacy}","received_events_url":"https://api.github.com/users/tars/received_events","type":"Organization","site_admin":false},"repo":{"id":20493429,"name":"tars","full_name":"tars/tars","owner":{"login":"tars","id":13495627,"avatar_url":"https://avatars.githubusercontent.com/u/13495627?v=3","gravatar_id":"","url":"https://api.github.com/users/tars","html_url":"https://github.com/tars","followers_url":"https://api.github.com/users/tars/followers","following_url":"https://api.github.com/users/tars/following{/other_user}","gists_url":"https://api.github.com/users/tars/gists{/gist_id}","starred_url":"https://api.github.com/users/tars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tars/subscriptions","organizations_url":"https://api.github.com/users/tars/orgs","repos_url":"https://api.github.com/users/tars/repos","events_url":"https://api.github.com/users/tars/events{/privacy}","received_events_url":"https://api.github.com/users/tars/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tars/tars","description":"Markup builder on gulp","fork":false,"url":"https://api.github.com/repos/tars/tars","forks_url":"https://api.github.com/repos/tars/tars/forks","keys_url":"https://api.github.com/repos/tars/tars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tars/tars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tars/tars/teams","hooks_url":"https://api.github.com/repos/tars/tars/hooks","issue_events_url":"https://api.github.com/repos/tars/tars/issues/events{/number}","events_url":"https://api.github.com/repos/tars/tars/events","assignees_url":"https://api.github.com/repos/tars/tars/assignees{/user}","branches_url":"https://api.github.com/repos/tars/tars/branches{/branch}","tags_url":"https://api.github.com/repos/tars/tars/tags","blobs_url":"https://api.github.com/repos/tars/tars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tars/tars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tars/tars/git/refs{/sha}","trees_url":"https://api.github.com/repos/tars/tars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tars/tars/statuses/{sha}","languages_url":"https://api.github.com/repos/tars/tars/languages","stargazers_url":"https://api.github.com/repos/tars/tars/stargazers","contributors_url":"https://api.github.com/repos/tars/tars/contributors","subscribers_url":"https://api.github.com/repos/tars/tars/subscribers","subscription_url":"https://api.github.com/repos/tars/tars/subscription","commits_url":"https://api.github.com/repos/tars/tars/commits{/sha}","git_commits_url":"https://api.github.com/repos/tars/tars/git/commits{/sha}","comments_url":"https://api.github.com/repos/tars/tars/comments{/number}","issue_comment_url":"https://api.github.com/repos/tars/tars/issues/comments{/number}","contents_url":"https://api.github.com/repos/tars/tars/contents/{+path}","compare_url":"https://api.github.com/repos/tars/tars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tars/tars/merges","archive_url":"https://api.github.com/repos/tars/tars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tars/tars/downloads","issues_url":"https://api.github.com/repos/tars/tars/issues{/number}","pulls_url":"https://api.github.com/repos/tars/tars/pulls{/number}","milestones_url":"https://api.github.com/repos/tars/tars/milestones{/number}","notifications_url":"https://api.github.com/repos/tars/tars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tars/tars/labels{/name}","releases_url":"https://api.github.com/repos/tars/tars/releases{/id}","created_at":"2014-06-04T17:44:16Z","updated_at":"2015-08-14T08:32:57Z","pushed_at":"2015-08-19T16:12:46Z","git_url":"git://github.com/tars/tars.git","ssh_url":"git@github.com:tars/tars.git","clone_url":"https://github.com/tars/tars.git","svn_url":"https://github.com/tars/tars","homepage":null,"size":2176,"stargazers_count":223,"watchers_count":223,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":40,"forks":43,"open_issues":40,"watchers":223,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tars/tars/pulls/103"},"html":{"href":"https://github.com/tars/tars/pull/103"},"issue":{"href":"https://api.github.com/repos/tars/tars/issues/103"},"comments":{"href":"https://api.github.com/repos/tars/tars/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/tars/tars/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/tars/tars/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tars/tars/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/tars/tars/statuses/9e57f1b98bd70d8852d5085e8fd641172d3254bc"}}}}