{"action":"created","comment":{"url":"https://api.github.com/repos/mynewsdesk/mnd-bootstrap/pulls/comments/30808349","id":30808349,"diff_hunk":"@@ -0,0 +1,170 @@\n+var babel = require('babel-core');\n+var coffee = require('coffee-script');\n+var path = require('path');\n+var changeCase = require('change-case');\n+\n+module.exports = function(grunt) {\n+\n+  require('grunt-task-loader')(grunt);\n+\n+  grunt.initConfig({\n+    SRC: 'src',\n+    PUBLIC: '.public',\n+    DIST: 'dist',\n+    sass: {\n+      dist: {\n+        options: {\n+          style: 'expanded',\n+          update: true,\n+          trace: true,\n+          loadPath: ['bower_components']\n+        },\n+        files: {\n+          '<%= PUBLIC %>/mnd-bootstrap-dev.css': '<%= SRC %>/mnd-bootstrap-dev.scss',\n+          '<%= PUBLIC %>/styleguide.css': 'hologram/doc_assets/styleguide.scss'\n+        }\n+      }\n+    },\n+    copy: {\n+      jquery: {\n+        expand: true,\n+        cwd: 'bower_components/jquery/dist/',\n+        src: 'jquery.min.js',\n+        dest: 'hologram/doc_assets/'\n+      },\n+      bootstrap: {\n+        expand: true,\n+        cwd: 'bower_components/bootstrap-sass-twbs/assets/javascripts/',\n+        src: 'bootstrap.js',\n+        dest: 'hologram/doc_assets/'\n+      }\n+    },\n+    webpack: {\n+      dist: {\n+        entry: './hologram/mnd.js',\n+        output: {\n+          path: '<%= PUBLIC %>',\n+          filename: 'mnd.js'\n+        },\n+        module: {\n+          loaders: [\n+            {\n+              test: /\\.coffee$/,\n+              exclude: /node_modules/,\n+              loaders: ['jsx-loader', 'coffee-loader']\n+            },\n+            {\n+              test: /\\.js$/,\n+              exclude: /node_modules|hologram/,\n+              loader: 'babel-loader'\n+            }\n+          ]\n+        },\n+        resolve: {\n+          extensions: ['', '.js', '.coffee'],\n+          alias: {\n+            components: __dirname + '/<%= SRC %>/react-components',\n+            utils: '/src/js/utils'\n+          }\n+        },\n+      }\n+    },\n+    hologram: {\n+      dist: {\n+        options: {\n+          config: 'hologram/hologram_config.yml'\n+        }\n+      }\n+    },\n+    watch: {\n+      js: {\n+        files: [\n+          '<%= SRC %>/**/*.js',\n+          '<%= SRC %>/**/*.coffee',\n+          'hologram/mnd.js'\n+        ],\n+        tasks: ['webpack', 'hologram']\n+      },\n+      scss: {\n+        files: ['<%= SRC %>/**/*.scss', 'hologram/doc_assets/**/*.scss'],\n+        tasks: ['sass', 'hologram']\n+      },\n+      styleguide: {\n+        files: '<%= PUBLIC %>/**/*',\n+        options: {\n+          livereload: 35729\n+        },\n+        tasks: ['notify:hologram']\n+      },\n+      config: {\n+        files: ['Gruntfile.js'],\n+        tasks: ['build']\n+      }\n+    },\n+    connect: {\n+      options: {\n+        base: '<%= PUBLIC %>'\n+      },\n+      dist: {}\n+    },\n+    notify: {\n+      hologram: {\n+        options: {\n+          message: 'Hologram build completed'\n+        }\n+      }\n+    },\n+    release: {\n+      options: {\n+        additionalFiles: ['bower.json'],\n+        npm: false,\n+        beforeRelease: ['build', 'pack'],\n+        afterRelease: ['gh-pages']\n+      }\n+    },\n+    'gh-pages': {\n+      options: {\n+        base: '<%= PUBLIC %>'\n+      },\n+      dist: {\n+        src: ['**']\n+      }\n+    },\n+    pack: {\n+      npm: {\n+        src: '<%= SRC %>/react-components/**/*.{js,coffee}',\n+        dest: '<%= DIST %>/lib/'\n+      }\n+    }\n+  });\n+\n+  grunt.registerTask('build', ['copy', 'sass', 'webpack', 'hologram']);\n+  grunt.registerTask('default', ['build', 'connect', 'watch']);\n+\n+  grunt.registerMultiTask('pack', 'package file for npm', function() {\n+    var entryPoint = 'module.exports = {\\n';\n+    var entries = [];\n+    var exports = {}\n+    var files = grunt.file.expand(this.data.src);\n+    files.forEach( function(file, index) {\n+      extension = path.extname(file);\n+      filename = path.basename(file, extension);\n+      var className = changeCase.pascalCase(filename);\n+      entries.push('  \"' + className + '\": require(\"./lib/' + filename + '\")');\n+      dest = path.join(this.data.dest, filename + '.js');\n+      if (extension === 'js') {\n+        code = babel.transformFileSync(file, {optional: ['runtime']}).code;\n+        grunt.file.write(dest, code);\n+      } else if (extension === 'coffee') {","path":"Gruntfile.js","position":158,"original_position":158,"commit_id":"bccf9b046268da58d45f251674817df10f9bbb50","original_commit_id":"bccf9b046268da58d45f251674817df10f9bbb50","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":"'extension' is not defined.","created_at":"2015-05-21T14:39:01Z","updated_at":"2015-05-21T14:39:01Z","html_url":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26#discussion_r30808349","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/30808349"},"html":{"href":"https://github.com/mynewsdesk/mnd-bootstrap/pull/26#discussion_r30808349"},"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-21T14:39:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f7131c35fbd5ee9b90dfc8031a44e0fa4d72a1c","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/bccf9b046268da58d45f251674817df10f9bbb50","head":{"label":"mynewsdesk:feature/react-components","ref":"feature/react-components","sha":"bccf9b046268da58d45f251674817df10f9bbb50","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-21T14:38:41Z","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":2,"forks":0,"open_issues":2,"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-21T14:38:41Z","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":2,"forks":0,"open_issues":2,"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/bccf9b046268da58d45f251674817df10f9bbb50"}}}}