{"action":"created","comment":{"url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments/49926028","id":49926028,"diff_hunk":"@@ -376,39 +383,26 @@ module.exports = function (grunt) {\n \n     // compile the single JSX file into the appropriate Fauxton folder\n     var targetFilepath = filepath;\n-    if (isJSX) {\n-      var folder = filepath.replace(/\\/[^\\/]*$/, '');\n-      var targetFolder = folder;\n-\n-      // if the JSX file ISN'T in Fauxton, generate the .js file there\n-      if (!(/^app\\/addons/.test(folder))) {\n-        targetFolder = folder.replace(/.*\\/addons/, 'app/addons');\n-      }\n-      targetFilepath = filepath.replace(/.*\\/addons/, 'app/addons');\n-      targetFilepath = targetFilepath.replace(/\\.jsx$/, '.js');\n \n-      config.shell['build-single-jsx'].command = 'node ./node_modules/react-tools/bin/jsx -x jsx ' + folder + ' ' + targetFolder + ' --no-cache-dir';\n-      grunt.task.run(['shell:build-single-jsx']);\n-    }\n+    var folder = filepath.replace(/\\/[^\\/]*$/, '');\n+    var targetFolder = folder;\n \n-    // if the JS file that just changed was outside of Fauxton, copy it over\n-    if (isJS && !(/^app\\/addons/.test(filepath))) {\n-      config.copy.changedFiles.files = [{\n-        src: filepath,\n-        dest: filepath.replace(/.*\\/addons/, 'app/addons')\n-      }];\n-      grunt.task.run(['copy:changedFiles']);\n-    }","path":"Gruntfile.js","position":94,"original_position":94,"commit_id":"1db75f744e5baf6bff88cb2f808f9af64bdd9c38","original_commit_id":"1db75f744e5baf6bff88cb2f808f9af64bdd9c38","user":{"login":"benkeen","id":512116,"avatar_url":"https://avatars.githubusercontent.com/u/512116?v=3","gravatar_id":"","url":"https://api.github.com/users/benkeen","html_url":"https://github.com/benkeen","followers_url":"https://api.github.com/users/benkeen/followers","following_url":"https://api.github.com/users/benkeen/following{/other_user}","gists_url":"https://api.github.com/users/benkeen/gists{/gist_id}","starred_url":"https://api.github.com/users/benkeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benkeen/subscriptions","organizations_url":"https://api.github.com/users/benkeen/orgs","repos_url":"https://api.github.com/users/benkeen/repos","events_url":"https://api.github.com/users/benkeen/events{/privacy}","received_events_url":"https://api.github.com/users/benkeen/received_events","type":"User","site_admin":false},"body":"I'm not sure. The purpose of this code was for local dev to ensure any changed JS files in the dash get copied over immediately (i.e. as you change them). Won't this condition still apply with the new folder structure?","created_at":"2016-01-16T02:51:33Z","updated_at":"2016-01-16T02:51:33Z","html_url":"https://github.com/apache/couchdb-fauxton/pull/609#discussion_r49926028","pull_request_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609","_links":{"self":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments/49926028"},"html":{"href":"https://github.com/apache/couchdb-fauxton/pull/609#discussion_r49926028"},"pull_request":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609"}}},"pull_request":{"url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609","id":56182590,"html_url":"https://github.com/apache/couchdb-fauxton/pull/609","diff_url":"https://github.com/apache/couchdb-fauxton/pull/609.diff","patch_url":"https://github.com/apache/couchdb-fauxton/pull/609.patch","issue_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/609","number":609,"state":"open","locked":false,"title":"transpile with babel","user":{"login":"robertkowalski","id":298166,"avatar_url":"https://avatars.githubusercontent.com/u/298166?v=3","gravatar_id":"","url":"https://api.github.com/users/robertkowalski","html_url":"https://github.com/robertkowalski","followers_url":"https://api.github.com/users/robertkowalski/followers","following_url":"https://api.github.com/users/robertkowalski/following{/other_user}","gists_url":"https://api.github.com/users/robertkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertkowalski/subscriptions","organizations_url":"https://api.github.com/users/robertkowalski/orgs","repos_url":"https://api.github.com/users/robertkowalski/repos","events_url":"https://api.github.com/users/robertkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/robertkowalski/received_events","type":"User","site_admin":false},"body":"Hello ES6 and React 14! :sunny: \r\n\r\nAdditional changes:\r\n\r\n - optimize watch task: run stylecheck before to provide faster\r\n   feedback","created_at":"2016-01-15T15:30:28Z","updated_at":"2016-01-16T02:51:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e120834e0a98cad6dc15ab116606cfa2258a9be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609/commits","review_comments_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609/comments","review_comment_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/609/comments","statuses_url":"https://api.github.com/repos/apache/couchdb-fauxton/statuses/1db75f744e5baf6bff88cb2f808f9af64bdd9c38","head":{"label":"robertkowalski:babel-latest","ref":"babel-latest","sha":"1db75f744e5baf6bff88cb2f808f9af64bdd9c38","user":{"login":"robertkowalski","id":298166,"avatar_url":"https://avatars.githubusercontent.com/u/298166?v=3","gravatar_id":"","url":"https://api.github.com/users/robertkowalski","html_url":"https://github.com/robertkowalski","followers_url":"https://api.github.com/users/robertkowalski/followers","following_url":"https://api.github.com/users/robertkowalski/following{/other_user}","gists_url":"https://api.github.com/users/robertkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertkowalski/subscriptions","organizations_url":"https://api.github.com/users/robertkowalski/orgs","repos_url":"https://api.github.com/users/robertkowalski/repos","events_url":"https://api.github.com/users/robertkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/robertkowalski/received_events","type":"User","site_admin":false},"repo":{"id":21752686,"name":"couchdb-fauxton","full_name":"robertkowalski/couchdb-fauxton","owner":{"login":"robertkowalski","id":298166,"avatar_url":"https://avatars.githubusercontent.com/u/298166?v=3","gravatar_id":"","url":"https://api.github.com/users/robertkowalski","html_url":"https://github.com/robertkowalski","followers_url":"https://api.github.com/users/robertkowalski/followers","following_url":"https://api.github.com/users/robertkowalski/following{/other_user}","gists_url":"https://api.github.com/users/robertkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertkowalski/subscriptions","organizations_url":"https://api.github.com/users/robertkowalski/orgs","repos_url":"https://api.github.com/users/robertkowalski/repos","events_url":"https://api.github.com/users/robertkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/robertkowalski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertkowalski/couchdb-fauxton","description":"Mirror of Apache CouchDB","fork":true,"url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton","forks_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/forks","keys_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/teams","hooks_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/hooks","issue_events_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/issues/events{/number}","events_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/events","assignees_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/assignees{/user}","branches_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/branches{/branch}","tags_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/tags","blobs_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/statuses/{sha}","languages_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/languages","stargazers_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/stargazers","contributors_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/contributors","subscribers_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/subscribers","subscription_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/subscription","commits_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/issues/comments{/number}","contents_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/contents/{+path}","compare_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/merges","archive_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/downloads","issues_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/issues{/number}","pulls_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/pulls{/number}","milestones_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/milestones{/number}","notifications_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/labels{/name}","releases_url":"https://api.github.com/repos/robertkowalski/couchdb-fauxton/releases{/id}","created_at":"2014-07-11T21:57:44Z","updated_at":"2015-01-08T14:27:52Z","pushed_at":"2016-01-15T15:29:58Z","git_url":"git://github.com/robertkowalski/couchdb-fauxton.git","ssh_url":"git@github.com:robertkowalski/couchdb-fauxton.git","clone_url":"https://github.com/robertkowalski/couchdb-fauxton.git","svn_url":"https://github.com/robertkowalski/couchdb-fauxton","homepage":null,"size":43146,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"f3dcd3a4076e69591dfbdc72fd4d778cc5d3d4d8","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":15993612,"name":"couchdb-fauxton","full_name":"apache/couchdb-fauxton","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/couchdb-fauxton","description":"Mirror of Apache CouchDB","fork":false,"url":"https://api.github.com/repos/apache/couchdb-fauxton","forks_url":"https://api.github.com/repos/apache/couchdb-fauxton/forks","keys_url":"https://api.github.com/repos/apache/couchdb-fauxton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/couchdb-fauxton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/couchdb-fauxton/teams","hooks_url":"https://api.github.com/repos/apache/couchdb-fauxton/hooks","issue_events_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/events{/number}","events_url":"https://api.github.com/repos/apache/couchdb-fauxton/events","assignees_url":"https://api.github.com/repos/apache/couchdb-fauxton/assignees{/user}","branches_url":"https://api.github.com/repos/apache/couchdb-fauxton/branches{/branch}","tags_url":"https://api.github.com/repos/apache/couchdb-fauxton/tags","blobs_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/couchdb-fauxton/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/couchdb-fauxton/languages","stargazers_url":"https://api.github.com/repos/apache/couchdb-fauxton/stargazers","contributors_url":"https://api.github.com/repos/apache/couchdb-fauxton/contributors","subscribers_url":"https://api.github.com/repos/apache/couchdb-fauxton/subscribers","subscription_url":"https://api.github.com/repos/apache/couchdb-fauxton/subscription","commits_url":"https://api.github.com/repos/apache/couchdb-fauxton/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/couchdb-fauxton/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/couchdb-fauxton/contents/{+path}","compare_url":"https://api.github.com/repos/apache/couchdb-fauxton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/couchdb-fauxton/merges","archive_url":"https://api.github.com/repos/apache/couchdb-fauxton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/couchdb-fauxton/downloads","issues_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues{/number}","pulls_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/couchdb-fauxton/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/couchdb-fauxton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/couchdb-fauxton/labels{/name}","releases_url":"https://api.github.com/repos/apache/couchdb-fauxton/releases{/id}","created_at":"2014-01-17T08:00:08Z","updated_at":"2016-01-11T13:33:40Z","pushed_at":"2016-01-15T15:30:28Z","git_url":"git://github.com/apache/couchdb-fauxton.git","ssh_url":"git@github.com:apache/couchdb-fauxton.git","clone_url":"https://github.com/apache/couchdb-fauxton.git","svn_url":"https://github.com/apache/couchdb-fauxton","homepage":null,"size":7983,"stargazers_count":73,"watchers_count":73,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":"git://git.apache.org/couchdb-fauxton.git","open_issues_count":13,"forks":77,"open_issues":13,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609"},"html":{"href":"https://github.com/apache/couchdb-fauxton/pull/609"},"issue":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/issues/609"},"comments":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/issues/609/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/609/commits"},"statuses":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/statuses/1db75f744e5baf6bff88cb2f808f9af64bdd9c38"}}}}