{"action":"created","comment":{"url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments/34580339","id":34580339,"diff_hunk":"@@ -1,8 +1,76 @@\n+/* global module */\n+\n module.exports = function(grunt) {\n+    'use strict';\n+    grunt.initConfig({\n+        pkg: grunt.file.readJSON('package.json'),\n+\n+        meta: {\n+            componentsJsFiles: [\n+                'src/**/*.js'\n+            ],\n+            testJsFiles: [\n+                'test/**/*Spec.js'\n+            ],\n+            ourJsFiles: [\n+                'Gruntfile.js',\n+                '<%= meta.componentsJsFiles %>',\n+                '<%= meta.testJsFiles %>'\n+            ]\n+        },\n+\n+        jscs: {\n+            options: {\n+                config: '.jscsrc'\n+            },\n+            failOnError: {\n+                files: {\n+                    src: ['<%= meta.ourJsFiles %>']\n+                }\n+            },\n+            warnOnly: {\n+                options: {\n+                    force: true\n+                },\n+                files: {\n+                    src: ['<%= meta.ourJsFiles %>']\n+                }\n+            }\n+        },\n+\n+        jshint: {\n+            options: {\n+                jshintrc: true\n+            },\n+            failOnError: {\n+                files: {\n+                    src: ['<%= meta.ourJsFiles %>']\n+                }\n+            },\n+            warnOnly: {\n+                options: {\n+                    force: true\n+                },\n+                files: {\n+                    src: ['<%= meta.ourJsFiles %>']\n+                }\n+            }\n+        },\n \n-  grunt.initConfig({\n-  });\n+        watch: {\n+            files: ['<%= meta.ourJsFiles %>'],\n+            tasks: ['jshint', 'jscs']\n+        }\n+    });\n \n-  grunt.registerTask('default', []);\n+    grunt.loadNpmTasks('grunt-contrib-jshint');\n+    grunt.loadNpmTasks('grunt-jscs');\n+    grunt.loadNpmTasks('grunt-contrib-watch');\n \n+    grunt.registerTask('default', ['jshint', 'jscs']);\n+    grunt.registerTask('check:failOnError', ['jshint:failOnError', 'jscs:failOnError']);\n+    grunt.registerTask('check:warnOnly', ['jshint:warnOnly', 'jscs:warnOnly']);\n+    grunt.registerTask('check', ['check:failOnError']);\n+    grunt.registerTask('check:failOnError', ['jshint:failOnError', 'jscs:failOnError']);","path":"Gruntfile.js","position":77,"original_position":77,"commit_id":"dc92e790f1b6cc52340831f0578838ba1c477806","original_commit_id":"dc92e790f1b6cc52340831f0578838ba1c477806","user":{"login":"jleft","id":2017615,"avatar_url":"https://avatars.githubusercontent.com/u/2017615?v=3","gravatar_id":"","url":"https://api.github.com/users/jleft","html_url":"https://github.com/jleft","followers_url":"https://api.github.com/users/jleft/followers","following_url":"https://api.github.com/users/jleft/following{/other_user}","gists_url":"https://api.github.com/users/jleft/gists{/gist_id}","starred_url":"https://api.github.com/users/jleft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleft/subscriptions","organizations_url":"https://api.github.com/users/jleft/orgs","repos_url":"https://api.github.com/users/jleft/repos","events_url":"https://api.github.com/users/jleft/events{/privacy}","received_events_url":"https://api.github.com/users/jleft/received_events","type":"User","site_admin":false},"body":"`check:warnOnly` and `check:failOnError` have been included twice.","created_at":"2015-07-14T15:22:47Z","updated_at":"2015-07-14T15:22:47Z","html_url":"https://github.com/ScottLogic/d3fc-showcase/pull/6#discussion_r34580339","pull_request_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments/34580339"},"html":{"href":"https://github.com/ScottLogic/d3fc-showcase/pull/6#discussion_r34580339"},"pull_request":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6","id":39917846,"html_url":"https://github.com/ScottLogic/d3fc-showcase/pull/6","diff_url":"https://github.com/ScottLogic/d3fc-showcase/pull/6.diff","patch_url":"https://github.com/ScottLogic/d3fc-showcase/pull/6.patch","issue_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/6","number":6,"state":"open","locked":false,"title":"Feature/initial files","user":{"login":"CBarrett2","id":12998688,"avatar_url":"https://avatars.githubusercontent.com/u/12998688?v=3","gravatar_id":"","url":"https://api.github.com/users/CBarrett2","html_url":"https://github.com/CBarrett2","followers_url":"https://api.github.com/users/CBarrett2/followers","following_url":"https://api.github.com/users/CBarrett2/following{/other_user}","gists_url":"https://api.github.com/users/CBarrett2/gists{/gist_id}","starred_url":"https://api.github.com/users/CBarrett2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CBarrett2/subscriptions","organizations_url":"https://api.github.com/users/CBarrett2/orgs","repos_url":"https://api.github.com/users/CBarrett2/repos","events_url":"https://api.github.com/users/CBarrett2/events{/privacy}","received_events_url":"https://api.github.com/users/CBarrett2/received_events","type":"User","site_admin":false},"body":"Added gruntfile with default and watch tasks to check the coding style using JShint and JSCS. Also added example files into src, which create a simple chart.","created_at":"2015-07-14T13:54:15Z","updated_at":"2015-07-14T15:22:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"280bb31d5b730f88a1b79ef1fffd8efe35b7da7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/6/comments","statuses_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/statuses/dc92e790f1b6cc52340831f0578838ba1c477806","head":{"label":"CBarrett2:feature/initialFiles","ref":"feature/initialFiles","sha":"dc92e790f1b6cc52340831f0578838ba1c477806","user":{"login":"CBarrett2","id":12998688,"avatar_url":"https://avatars.githubusercontent.com/u/12998688?v=3","gravatar_id":"","url":"https://api.github.com/users/CBarrett2","html_url":"https://github.com/CBarrett2","followers_url":"https://api.github.com/users/CBarrett2/followers","following_url":"https://api.github.com/users/CBarrett2/following{/other_user}","gists_url":"https://api.github.com/users/CBarrett2/gists{/gist_id}","starred_url":"https://api.github.com/users/CBarrett2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CBarrett2/subscriptions","organizations_url":"https://api.github.com/users/CBarrett2/orgs","repos_url":"https://api.github.com/users/CBarrett2/repos","events_url":"https://api.github.com/users/CBarrett2/events{/privacy}","received_events_url":"https://api.github.com/users/CBarrett2/received_events","type":"User","site_admin":false},"repo":{"id":39068757,"name":"d3fc-showcase","full_name":"CBarrett2/d3fc-showcase","owner":{"login":"CBarrett2","id":12998688,"avatar_url":"https://avatars.githubusercontent.com/u/12998688?v=3","gravatar_id":"","url":"https://api.github.com/users/CBarrett2","html_url":"https://github.com/CBarrett2","followers_url":"https://api.github.com/users/CBarrett2/followers","following_url":"https://api.github.com/users/CBarrett2/following{/other_user}","gists_url":"https://api.github.com/users/CBarrett2/gists{/gist_id}","starred_url":"https://api.github.com/users/CBarrett2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CBarrett2/subscriptions","organizations_url":"https://api.github.com/users/CBarrett2/orgs","repos_url":"https://api.github.com/users/CBarrett2/repos","events_url":"https://api.github.com/users/CBarrett2/events{/privacy}","received_events_url":"https://api.github.com/users/CBarrett2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CBarrett2/d3fc-showcase","description":"My clone of the development branch","fork":true,"url":"https://api.github.com/repos/CBarrett2/d3fc-showcase","forks_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/forks","keys_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/teams","hooks_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/hooks","issue_events_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/issues/events{/number}","events_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/events","assignees_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/assignees{/user}","branches_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/branches{/branch}","tags_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/tags","blobs_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/git/refs{/sha}","trees_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/statuses/{sha}","languages_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/languages","stargazers_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/stargazers","contributors_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/contributors","subscribers_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/subscribers","subscription_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/subscription","commits_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/commits{/sha}","git_commits_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/git/commits{/sha}","comments_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/comments{/number}","issue_comment_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/issues/comments{/number}","contents_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/contents/{+path}","compare_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/merges","archive_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/downloads","issues_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/issues{/number}","pulls_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/pulls{/number}","milestones_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/milestones{/number}","notifications_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/labels{/name}","releases_url":"https://api.github.com/repos/CBarrett2/d3fc-showcase/releases{/id}","created_at":"2015-07-14T10:32:06Z","updated_at":"2015-07-14T10:32:21Z","pushed_at":"2015-07-14T15:17:28Z","git_url":"git://github.com/CBarrett2/d3fc-showcase.git","ssh_url":"git@github.com:CBarrett2/d3fc-showcase.git","clone_url":"https://github.com/CBarrett2/d3fc-showcase.git","svn_url":"https://github.com/CBarrett2/d3fc-showcase","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ScottLogic:develop","ref":"develop","sha":"77b7804adeab6fadfde789375f044053cce48101","user":{"login":"ScottLogic","id":2046037,"avatar_url":"https://avatars.githubusercontent.com/u/2046037?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottLogic","html_url":"https://github.com/ScottLogic","followers_url":"https://api.github.com/users/ScottLogic/followers","following_url":"https://api.github.com/users/ScottLogic/following{/other_user}","gists_url":"https://api.github.com/users/ScottLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottLogic/subscriptions","organizations_url":"https://api.github.com/users/ScottLogic/orgs","repos_url":"https://api.github.com/users/ScottLogic/repos","events_url":"https://api.github.com/users/ScottLogic/events{/privacy}","received_events_url":"https://api.github.com/users/ScottLogic/received_events","type":"Organization","site_admin":false},"repo":{"id":39064095,"name":"d3fc-showcase","full_name":"ScottLogic/d3fc-showcase","owner":{"login":"ScottLogic","id":2046037,"avatar_url":"https://avatars.githubusercontent.com/u/2046037?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottLogic","html_url":"https://github.com/ScottLogic","followers_url":"https://api.github.com/users/ScottLogic/followers","following_url":"https://api.github.com/users/ScottLogic/following{/other_user}","gists_url":"https://api.github.com/users/ScottLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottLogic/subscriptions","organizations_url":"https://api.github.com/users/ScottLogic/orgs","repos_url":"https://api.github.com/users/ScottLogic/repos","events_url":"https://api.github.com/users/ScottLogic/events{/privacy}","received_events_url":"https://api.github.com/users/ScottLogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ScottLogic/d3fc-showcase","description":"","fork":false,"url":"https://api.github.com/repos/ScottLogic/d3fc-showcase","forks_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/forks","keys_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/teams","hooks_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/hooks","issue_events_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/events{/number}","events_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/events","assignees_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/assignees{/user}","branches_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/branches{/branch}","tags_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/tags","blobs_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/statuses/{sha}","languages_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/languages","stargazers_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/stargazers","contributors_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/contributors","subscribers_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/subscribers","subscription_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/subscription","commits_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/contents/{+path}","compare_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/merges","archive_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/downloads","issues_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues{/number}","pulls_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls{/number}","milestones_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/milestones{/number}","notifications_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/labels{/name}","releases_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/releases{/id}","created_at":"2015-07-14T08:47:46Z","updated_at":"2015-07-14T15:03:28Z","pushed_at":"2015-07-14T14:52:54Z","git_url":"git://github.com/ScottLogic/d3fc-showcase.git","ssh_url":"git@github.com:ScottLogic/d3fc-showcase.git","clone_url":"https://github.com/ScottLogic/d3fc-showcase.git","svn_url":"https://github.com/ScottLogic/d3fc-showcase","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6"},"html":{"href":"https://github.com/ScottLogic/d3fc-showcase/pull/6"},"issue":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/6"},"comments":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/statuses/dc92e790f1b6cc52340831f0578838ba1c477806"}}}}