{"action":"created","comment":{"url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/comments/31007293","id":31007293,"diff_hunk":"@@ -0,0 +1,36 @@\n+var changeCase = require('change-case');\n+var path = require('path');\n+var babel = require('babel-core');\n+var coffee = require('coffee-script');\n+\n+module.exports = function() {\n+  var filename = extension = componentName = null;\n+  var components = [];\n+  var files = grunt.file.expand(this.data.src);\n+  files.forEach(function(file) {\n+    extension = path.extname(file);\n+    filename = path.basename(file, extension);\n+    componentName = changeCase.pascalCase(filename);\n+    components.push({\n+      name: componentName,\n+      fileName: './lib/' + filename\n+    });\n+    dest = path.join(this.data.dest, filename + '.js');\n+    var code = null\n+    if (extension === '.js') {\n+      code = babel.transformFileSync(file, {optional: ['runtime']}).code;\n+    } else if (extension === '.coffee') {\n+      var coffeeCode = grunt.file.read(file);\n+      code = coffee.compile(coffeeCode);\n+    }\n+    grunt.file.write(dest, code);\n+    grunt.log.writeln('Compile ' + file + ' to ' + dest);\n+  }, this);\n+\n+  var entryPoint = 'module.exports = {\\n';\n+  entryPoint += components.map( function(component) {\n+    return '  \"' + component.name + '\": require(\"' + component.fileName + '\")';\n+  }).join(',\\n');\n+  entryPoint += '\\n};';\n+  grunt.file.write(this.data.manifest, entryPoint);\n+}","path":"grunt/pack.js","position":36,"original_position":36,"commit_id":"e442c5d6d1fec3e80a4c626a0170c66c34c22023","original_commit_id":"e442c5d6d1fec3e80a4c626a0170c66c34c22023","user":{"login":"mnd-hound","id":11031703,"avatar_url":"https://avatars.githubusercontent.com/u/11031703?v=3","gravatar_id":"","url":"https://api.github.com/users/mnd-hound","html_url":"https://github.com/mnd-hound","followers_url":"https://api.github.com/users/mnd-hound/followers","following_url":"https://api.github.com/users/mnd-hound/following{/other_user}","gists_url":"https://api.github.com/users/mnd-hound/gists{/gist_id}","starred_url":"https://api.github.com/users/mnd-hound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnd-hound/subscriptions","organizations_url":"https://api.github.com/users/mnd-hound/orgs","repos_url":"https://api.github.com/users/mnd-hound/repos","events_url":"https://api.github.com/users/mnd-hound/events{/privacy}","received_events_url":"https://api.github.com/users/mnd-hound/received_events","type":"User","site_admin":false},"body":"Missing semicolon.","created_at":"2015-05-26T06:32:10Z","updated_at":"2015-05-26T06:32:10Z","html_url":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26#discussion_r31007293","pull_request_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/comments/31007293"},"html":{"href":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26#discussion_r31007293"},"pull_request":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26","id":35810894,"html_url":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26","diff_url":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26.diff","patch_url":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26.patch","issue_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/26","number":26,"state":"open","locked":false,"title":"Feature/react components","user":{"login":"b2l","id":1208411,"avatar_url":"https://avatars.githubusercontent.com/u/1208411?v=3","gravatar_id":"","url":"https://api.github.com/users/b2l","html_url":"https://github.com/b2l","followers_url":"https://api.github.com/users/b2l/followers","following_url":"https://api.github.com/users/b2l/following{/other_user}","gists_url":"https://api.github.com/users/b2l/gists{/gist_id}","starred_url":"https://api.github.com/users/b2l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b2l/subscriptions","organizations_url":"https://api.github.com/users/b2l/orgs","repos_url":"https://api.github.com/users/b2l/repos","events_url":"https://api.github.com/users/b2l/events{/privacy}","received_events_url":"https://api.github.com/users/b2l/received_events","type":"User","site_admin":false},"body":"Change the styleguide to make it support react component.\r\n\r\nMake sure to install grunt before trying this branch: \r\n`npm install -g grunt-cli`\r\n\r\nYou can write component in ES6 or in coffeescript\r\nThe documentation for hologram should be as follow:\r\n**ES6:**\r\n```\r\n/*doc\r\n---\r\ntitle: Title\r\nname: page_name\r\ncategory: React Components\r\n---\r\n\r\n```react_example\r\n// Setup code\r\nvar value = 'toto'\r\n--- // <= this line is SUPER important. It's the separation between JSX code and javascript code\r\n<DatePicker value={value} />\r\n```\r\n*/\r\n```\r\n\r\n**coffeescript:**\r\n###\r\n/*doc\r\nSAME THING AS FOR THE ES6\r\n###\r\n#*/","created_at":"2015-05-20T09:02:29Z","updated_at":"2015-05-26T06:32:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82cccd1a6bf003d1921d64d1091daabdf233d234","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26/commits","review_comments_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26/comments","review_comment_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/26/comments","statuses_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/statuses/e442c5d6d1fec3e80a4c626a0170c66c34c22023","head":{"label":"mynewsdesk:feature/react-components","ref":"feature/react-components","sha":"e442c5d6d1fec3e80a4c626a0170c66c34c22023","user":{"login":"mynewsdesk","id":48223,"avatar_url":"https://avatars.githubusercontent.com/u/48223?v=3","gravatar_id":"","url":"https://api.github.com/users/mynewsdesk","html_url":"https://github.com/mynewsdesk","followers_url":"https://api.github.com/users/mynewsdesk/followers","following_url":"https://api.github.com/users/mynewsdesk/following{/other_user}","gists_url":"https://api.github.com/users/mynewsdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/mynewsdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mynewsdesk/subscriptions","organizations_url":"https://api.github.com/users/mynewsdesk/orgs","repos_url":"https://api.github.com/users/mynewsdesk/repos","events_url":"https://api.github.com/users/mynewsdesk/events{/privacy}","received_events_url":"https://api.github.com/users/mynewsdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":19279669,"name":"mnd-bootstrap","full_name":"mynewsdesk/mnd-bootstrap","owner":{"login":"mynewsdesk","id":48223,"avatar_url":"https://avatars.githubusercontent.com/u/48223?v=3","gravatar_id":"","url":"https://api.github.com/users/mynewsdesk","html_url":"https://github.com/mynewsdesk","followers_url":"https://api.github.com/users/mynewsdesk/followers","following_url":"https://api.github.com/users/mynewsdesk/following{/other_user}","gists_url":"https://api.github.com/users/mynewsdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/mynewsdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mynewsdesk/subscriptions","organizations_url":"https://api.github.com/users/mynewsdesk/orgs","repos_url":"https://api.github.com/users/mynewsdesk/repos","events_url":"https://api.github.com/users/mynewsdesk/events{/privacy}","received_events_url":"https://api.github.com/users/mynewsdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mynewsdesk/mnd-bootstrap","description":"Mynewsdesk theme for Bootstrap","fork":false,"url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap","forks_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/forks","keys_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/teams","hooks_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/events","assignees_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/tags","blobs_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/languages","stargazers_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/subscription","commits_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/merges","archive_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/downloads","issues_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/releases{/id}","created_at":"2014-04-29T14:38:08Z","updated_at":"2015-05-08T14:46:27Z","pushed_at":"2015-05-26T06:31:48Z","git_url":"git://github.com/mynewsdesk/mnd-bootstrap.git","ssh_url":"git@github.com:mynewsdesk/mnd-bootstrap.git","clone_url":"https://github.com/mynewsdesk/mnd-bootstrap.git","svn_url":"https://github.com/mynewsdesk/mnd-bootstrap","homepage":"","size":7020,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"mynewsdesk:master","ref":"master","sha":"dd9917e0e7d5b6e8049ed3309b7ad2849487dd9b","user":{"login":"mynewsdesk","id":48223,"avatar_url":"https://avatars.githubusercontent.com/u/48223?v=3","gravatar_id":"","url":"https://api.github.com/users/mynewsdesk","html_url":"https://github.com/mynewsdesk","followers_url":"https://api.github.com/users/mynewsdesk/followers","following_url":"https://api.github.com/users/mynewsdesk/following{/other_user}","gists_url":"https://api.github.com/users/mynewsdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/mynewsdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mynewsdesk/subscriptions","organizations_url":"https://api.github.com/users/mynewsdesk/orgs","repos_url":"https://api.github.com/users/mynewsdesk/repos","events_url":"https://api.github.com/users/mynewsdesk/events{/privacy}","received_events_url":"https://api.github.com/users/mynewsdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":19279669,"name":"mnd-bootstrap","full_name":"mynewsdesk/mnd-bootstrap","owner":{"login":"mynewsdesk","id":48223,"avatar_url":"https://avatars.githubusercontent.com/u/48223?v=3","gravatar_id":"","url":"https://api.github.com/users/mynewsdesk","html_url":"https://github.com/mynewsdesk","followers_url":"https://api.github.com/users/mynewsdesk/followers","following_url":"https://api.github.com/users/mynewsdesk/following{/other_user}","gists_url":"https://api.github.com/users/mynewsdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/mynewsdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mynewsdesk/subscriptions","organizations_url":"https://api.github.com/users/mynewsdesk/orgs","repos_url":"https://api.github.com/users/mynewsdesk/repos","events_url":"https://api.github.com/users/mynewsdesk/events{/privacy}","received_events_url":"https://api.github.com/users/mynewsdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mynewsdesk/mnd-bootstrap","description":"Mynewsdesk theme for Bootstrap","fork":false,"url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap","forks_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/forks","keys_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/teams","hooks_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/events","assignees_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/tags","blobs_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/languages","stargazers_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/subscription","commits_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/merges","archive_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/downloads","issues_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/releases{/id}","created_at":"2014-04-29T14:38:08Z","updated_at":"2015-05-08T14:46:27Z","pushed_at":"2015-05-26T06:31:48Z","git_url":"git://github.com/mynewsdesk/mnd-bootstrap.git","ssh_url":"git@github.com:mynewsdesk/mnd-bootstrap.git","clone_url":"https://github.com/mynewsdesk/mnd-bootstrap.git","svn_url":"https://github.com/mynewsdesk/mnd-bootstrap","homepage":"","size":7020,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26"},"html":{"href":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26"},"issue":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/26"},"comments":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/statuses/e442c5d6d1fec3e80a4c626a0170c66c34c22023"}}}}