{"name":"grunt-jekyll","description":"A custom grunt.js plugin that executes jekyll compile and/or watch for you","version":"0.3.2","homepage":"https://github.com/dannygarcia/grunt-jekyll","author":{"name":"Danny Garcia","email":"contact@danny-garcia.com","url":"http://danny-garcia.com"},"repository":{"type":"git","url":"https://github.com/dannygarcia/grunt-jekyll.git"},"bugs":{"url":"https://github.com/dannygarcia/grunt-jekyll/issues"},"licenses":"MIT","main":"grunt.js","bin":{"grunt-jekyll":"bin/grunt-jekyll"},"engines":{"node":">= 0.8.8"},"dependencies":{},"devDependencies":{"grunt":">= 0.3.15"},"keywords":["grunt.js","jekyll","grunt","gruntplugin"],"_id":"grunt-jekyll@0.3.2","dist":{"shasum":"52a309d5a54a2ddc8f367a91e4bb3d29255cb7ab","tarball":"http://registry-npm.ywwl.com/grunt-jekyll/download/grunt-jekyll-0.3.2.tgz","integrity":"sha512-h8+EFIGbWpKBoZpPHPiHiApXuD55p299eO+GYFudk4NTWou85FslF+Z442o6YUCIOnrCdRpvuOU5WI1ocjpy6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0sDcGQ1tBpLF4H46vZunjOsckzO0dRL3vJH7p47LkhAiEAt/CjBI6+AElEKC6Q1X01rGXDU/J7/VuouXUE9UDEcj4="}],"size":3061,"noattachment":false,"key":"/grunt-jekyll/-/grunt-jekyll-0.3.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dannygarcia","email":"contact@danny-garcia.com"},"maintainers":[{"name":"dannygarcia","email":"contact@danny-garcia.com"}],"directories":{},"readme":"# grunt-jekyll\n\n[![npm Version](https://img.shields.io/npm/v/grunt-jekyll.svg)](https://www.npmjs.com/package/grunt-jekyll)\n[![Build Status](https://travis-ci.org/dannygarcia/grunt-jekyll.svg?branch=master)](https://travis-ci.org/dannygarcia/grunt-jekyll)\n[![Dependency Status](https://david-dm.org/dannygarcia/grunt-jekyll.svg?theme=shields.io)](https://david-dm.org/dannygarcia/grunt-jekyll)\n[![devDependency Status](https://david-dm.org/dannygarcia/grunt-jekyll/dev-status.svg?theme=shields.io)](https://david-dm.org/dannygarcia/grunt-jekyll#info=devDependencies)\n[![npm Downloads](https://img.shields.io/npm/dm/grunt-jekyll.svg)](https://www.npmjs.com/package/grunt-jekyll)\n\n> Compile [Jekyll](http://jekyllrb.com/) sites with [Grunt](http://gruntjs.com/).\n\n## Getting Started\n\nThis plugin requires [Grunt](http://gruntjs.com/) `~0.4.0` and [Jekyll](http://jekyllrb.com/) `>= v1.0.0`.\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide which explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process you may install this plugin with the command:\n\n```shell\nnpm install grunt-jekyll --save-dev\n```\n\nAfter the plugin has been installed, load it in your Gruntfile with:\n\n```js\ngrunt.loadNpmTasks('grunt-jekyll');\n```\n\n## Jekyll Task\n\n_Run this task with the `grunt jekyll` command._\n\nThis task helps you compile your Jekyll static site with Grunt.\n\n### Jekyll Subcommands\n\n#### serve\n\nType: `boolean`  \nDefault: `false`\n\nBuild the site and start a Jekyll development server on `http://localhost:4000`. The server lasts forever: kill it with <kbd>Ctrl</kbd> + <kbd>C</kbd>.\n\nIf `serve` is false, the site is built with the `build` command.\n\nFor complex projects you may want to use [grunt-contrib-connect](https://github.com/gruntjs/grunt-contrib-connect) or [grunt-browser-sync](https://github.com/BrowserSync/grunt-browser-sync) instead.\n\n#### doctor\n\nType: `boolean`  \nDefault: `false`\n\nTest your site for common errors and deprecated code. Ignores all other options except `src`, `config`, and `bundleExec`.\n\n### Options\n\nYou can use all of the configuration options available in the [Jekyll Documentation](http://jekyllrb.com/docs/configuration/), as well as some special options provided by this plugin.\n\n#### src\n\nType: `string`  \nDefault: `.`\n\nDirectory where Jekyll will read files.\n\n#### dest\n\nType: `string`  \nDefault: `./_site`\n\nDirectory where Jekyll will write files.\n\n#### [no_]watch\n\nType: `boolean`  \nDefault: `false`\n\nRegenerate the site when files are modified.\nIf you are running multiple watch tasks in a project you should use [grunt-contrib-watch](https://github.com/gruntjs/grunt-contrib-watch) instead.\n\n#### config\n\nType: `string`  \nDefault: `_config.yml`\n\nSpecify a custom configuration file. Multiple files separated by a comma will cascade right to left.\n\n#### raw\n\nType: `string`\n\nCreate a temporary \\_config.yml with the contents of `raw`. This config file has greater precedence than the files in `config`.\n\n#### safe\n\nType: `boolean`  \nDefault: `false`\n\nDisables custom plugins, and ignore symbolic links.\n\n#### plugins\n\nType: `string`  \nDefault: `./_plugins`\n\nSpecify a plugins directory.\n\n#### layouts\n\nType: `string`  \nDefault: `./_layouts`\n\nSpecify a layouts directory.\n\n#### drafts\n\nType: `boolean`  \nDefault: `false`\n\nProcess and render draft posts.\n\n#### future\n\nType: `boolean`  \nDefault: `false`\n\nPublishes posts with a future date.\n\n#### lsi\n\nType: `boolean`  \nDefault: `false`\n\nProduce an index for related posts.\n\n#### limit_posts\n\nType: `number`  \n\nLimit the number of posts to parse and publish.\n\n#### force_polling\n\nType: `boolean`  \n\nForce watch to use polling.\n\n#### verbose\n\nType: `boolean`  \n\nPrint verbose output.\n\n#### quiet\n\nType: `boolean`  \n\nSilence the normal output from Jekyll during a build.\n\n#### incremental\n\nType: `boolean`  \n\nEnable the experimental incremental build feature. Incremental build only re-builds posts and pages that have changed, resulting in significant performance improvements for large sites, but may also break site generation in certain cases.\n\n#### livereload\n\nType: `boolean`  \n\nLiveReload refreshes your browser after a change.\n\n#### port\n\nType: `string` or `number`  \n\nListen on the given port (requires `serve`).\n\n#### host\n\nType: `string`  \n\nListen at the given hostname (requires `serve`).\n\n#### baseurl\n\nType: `string`  \n\nServe the website from the given base URL (requires `serve`).\n\n#### skip_initial_build\n\nType: `boolean`  \n\nSkips the initial site build which occurs before the server is started.\n\n#### open_url\n\nType: `boolean`  \n\nOpens the local URL in your default browser.\n\n#### bundleExec\n\nType: `boolean`  \nDefault: `false`\n\nRun `jekyll` with [bundle exec](http://gembundler.com/v1.3/man/bundle-exec.1.html).\n\n## Usage examples\n\nFollow [this Grunt example](https://gist.github.com/3753650) to get started with grunt-jekyll right away.\n\n### Example config\n\n```js\ngrunt.initConfig({\n  jekyll: {                             // Task\n    options: {                          // Universal options\n      bundleExec: true,\n      src : '<%= app %>'\n    },\n    dist: {                             // Target\n      options: {                        // Target options\n        dest: '<%= dist %>',\n        config: '_config.yml,_config.build.yml'\n      }\n    },\n    serve: {                            // Another target\n      options: {\n        serve: true,\n        dest: '.jekyll',\n        drafts: true,\n        future: true\n      }\n    }\n  }\n});\n\ngrunt.loadNpmTasks('grunt-jekyll');\n\ngrunt.registerTask('default', ['jshint', 'jekyll']);\n```\n\n### Example usage\n\n#### Use the `raw` option\n\n```js\ngrunt.initConfig({\n  jekyll: {\n    dist: {\n      options: {\n        config: '_config.yml',\n        // Construct a string with JavaScript.\n        // Remember, in YAML line breaks and indentation matter.\n        raw: 'pygments: false\\n' +\n             'exclude: [\\'development\\']\\n' +\n             'author:\\n' +\n             '  name: ' + fetchAuthor() + '\\n' +\n             '  email: ' + fetchEmail()\n      }\n    }\n  }\n});\n```\n\n## Changelog\n\n- v0.4.3: More options support for Jekyll 3.0.0\n- v0.4.2: More internal optimizations.\n- v0.4.1: Internal optimizations.\n- v0.4.0: Added setup for tests.\n- v0.3.9: Consolidating branches and bumping version number.\n- v0.3.8: Added [@robwierzbowski](https://github.com/robwierzbowski)'s raw option and other PRs.\n- v0.3.6:\n    - Reviewed Jekyll's [source](https://github.com/mojombo/jekyll/blob/master/bin/jekyll) and updated plugin with new flags.\n    - Reviewed and warned about deprecated flags.\n    - Updated documentation to match flag updates. (Rewritten as a list)\n- v0.3.3: Updated link in documentation. Added to-do list.\n- v0.3.2: Added option to select config file. Removed deprecated `--pygments` option flag. Bugfixes.\n- v0.3.0: Update for Jekyll 1.0\n- v0.2.1: Fixed destination path option.\n- v0.2.0: Updated README with better options. Options are more flexible.\n- v0.1.6: Updated README with better example.\n- v0.1.0: Initial Release.\n\n\n## License\n\nMIT\n","publish_time":1368513196826,"_cnpm_publish_time":1368513196826,"dist-tags":{"latest":"1.0.1"}}