grunt-jekyll
Advanced tools
Comparing version 0.4.1 to 0.4.2
{ | ||
"name": "grunt-jekyll", | ||
"description": "A custom grunt.js plugin that executes jekyll compile and/or watch for you", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"homepage": "https://github.com/dannygarcia/grunt-jekyll", | ||
@@ -15,4 +15,3 @@ "author": "Danny Garcia <contact@danny-garcia.com> (http://danny-garcia.com)", | ||
}, | ||
"licenses": "MIT", | ||
"main": "grunt.js", | ||
"license": "MIT", | ||
"bin": "bin/grunt-jekyll", | ||
@@ -23,7 +22,8 @@ "engines": { | ||
"dependencies": { | ||
"tmp": "0.0.21" | ||
"tmp": "~0.0.23" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-mocha-test": "latest" | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-mocha-test": "~0.10.0" | ||
}, | ||
@@ -36,3 +36,4 @@ "peerDependencies": { | ||
}, | ||
"keywords": ["grunt.js", "jekyll", "grunt", "gruntplugin"] | ||
"keywords": ["jekyll", "gruntplugin"], | ||
"files": ["bin", "tasks"] | ||
} |
# grunt-jekyll | ||
[![Build Status](https://travis-ci.org/dannygarcia/grunt-jekyll.png?branch=master)](https://travis-ci.org/dannygarcia/grunt-jekyll) | ||
[![Build Status](https://travis-ci.org/dannygarcia/grunt-jekyll.svg?branch=master)](https://travis-ci.org/dannygarcia/grunt-jekyll) | ||
[![Dependency Status](https://david-dm.org/dannygarcia/grunt-jekyll.svg?theme=shields.io)](https://david-dm.org/dannygarcia/grunt-jekyll) | ||
[![devDependency Status](https://david-dm.org/dannygarcia/grunt-jekyll/dev-status.svg?theme=shields.io)](https://david-dm.org/dannygarcia/grunt-jekyll#info=devDependencies) | ||
@@ -27,3 +29,3 @@ > Compile [Jekyll](http://jekyllrb.com/) sites with [Grunt](http://gruntjs.com/). | ||
This task helps you compile your Jekyll static site with Grunt.js. | ||
This task helps you compile your Jekyll static site with Grunt. | ||
@@ -36,3 +38,3 @@ ### Options | ||
Type: `string` | ||
Type: `string` <br/> | ||
Default: `.` | ||
@@ -44,3 +46,3 @@ | ||
Type: `string` | ||
Type: `string` <br/> | ||
Default: `./_site` | ||
@@ -52,3 +54,3 @@ | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
@@ -60,8 +62,9 @@ | ||
#### serve | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
Build the site and start a Jekyll development server on http://localhost:4000. The server lasts forever: kill it with `ctrl+c` | ||
Build 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>. | ||
If serve is false, the site is built with the `build` command. | ||
If `serve` is false, the site is built with the `build` command. | ||
@@ -72,3 +75,3 @@ For complex projects you may want to use [grunt-contrib-connect](https://github.com/gruntjs/grunt-contrib-connect) instead. | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
@@ -80,3 +83,3 @@ | ||
Type: `string` | ||
Type: `string` <br/> | ||
Default: `_config.yml` | ||
@@ -94,3 +97,3 @@ | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
@@ -102,3 +105,3 @@ | ||
Type: `string` | ||
Type: `string` <br/> | ||
Default: `./_plugins` | ||
@@ -110,3 +113,3 @@ | ||
Type: `string` | ||
Type: `string` <br/> | ||
Default: `./_layouts` | ||
@@ -118,3 +121,3 @@ | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
@@ -126,3 +129,3 @@ | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
@@ -134,3 +137,3 @@ | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
@@ -142,3 +145,3 @@ | ||
Type: `number` | ||
Type: `number` <br/> | ||
@@ -149,21 +152,21 @@ Limit the number of posts to parse and publish. | ||
Type: `string or number` | ||
Type: `string` or `number` <br/> | ||
Listen on the given port (requires `server`). | ||
Listen on the given port (requires `serve`). | ||
#### host | ||
Type: `string` | ||
Type: `string` <br/> | ||
Listen at the given hostname (requires `server`). | ||
Listen at the given hostname (requires `serve`). | ||
#### baseurl | ||
Type: `string` | ||
Type: `string` <br/> | ||
Serve the website from the given base URL (requires `server`). | ||
Serve the website from the given base URL (requires `serve`). | ||
#### bundleExec | ||
Type: `boolean` | ||
Type: `boolean` <br/> | ||
Default: `false` | ||
@@ -175,3 +178,3 @@ | ||
Follow [this grunt.js example](https://gist.github.com/3753650) to get started with grunt-jekyll right away. | ||
Follow [this Grunt example](https://gist.github.com/3753650) to get started with grunt-jekyll right away. | ||
@@ -182,14 +185,14 @@ ### Example config | ||
grunt.initConfig({ | ||
jekyll: { // Task | ||
options: { // Universal options | ||
bundleExec: true, | ||
src : '<%= app %>' | ||
}, | ||
dist: { // Target | ||
options: { // Target options | ||
dest: '<%= dist %>', | ||
config: '_config.yml,_config.build.yml' | ||
jekyll: { // Task | ||
options: { // Universal options | ||
bundleExec: true, | ||
src : '<%= app %>' | ||
}, | ||
dist: { // Target | ||
options: { // Target options | ||
dest: '<%= dist %>', | ||
config: '_config.yml,_config.build.yml' | ||
} | ||
}, | ||
serve: { // Another target | ||
serve: { // Another target | ||
options: { | ||
@@ -217,11 +220,11 @@ dest: '.jekyll', | ||
options: { | ||
config: '_config.yml'. | ||
config: '_config.yml', | ||
// Construct a string with JavaScript. | ||
// Remember, in YAML line breaks and indentation matter. | ||
raw: 'pygments: false\n' + | ||
'exclude: [\'development\']\n' + | ||
'author:\n' + | ||
raw: 'pygments: false\n' + | ||
'exclude: [\'development\']\n' + | ||
'author:\n' + | ||
' name: ' + fetchAuthor() + '\n' + | ||
' email: ' + fetchEmail() | ||
} | ||
} | ||
} | ||
@@ -234,12 +237,13 @@ } | ||
- v0.4.2: More internal optimizations. | ||
- v0.4.1: Internal optimizations. | ||
- v0.4.0: Added setup for tests. | ||
- v0.3.9: Consolidating branches and bumping version #. | ||
- v0.3.8: Added robwierzbowski's raw option and other PRs. | ||
- v0.3.9: Consolidating branches and bumping version number. | ||
- v0.3.8: Added [@robwierzbowski](https://github.com/robwierzbowski)'s raw option and other PRs. | ||
- v0.3.6: | ||
- Reviewed Jekyll [source](https://github.com/mojombo/jekyll/blob/master/bin/jekyll) and updated plugin with new flags. | ||
- Reviewed Jekyll's [source](https://github.com/mojombo/jekyll/blob/master/bin/jekyll) and updated plugin with new flags. | ||
- Reviewed and warned about deprecated flags. | ||
- Updated documentation to match flag updates. (Rewritten as a list) | ||
- v0.3.3: Updated link in documentation. Added to-do list. | ||
- v0.3.2: Added option to select config file. Removed deprecated --pygments option flag. Bugfixes. | ||
- v0.3.2: Added option to select config file. Removed deprecated `--pygments` option flag. Bugfixes. | ||
- v0.3.0: Update for Jekyll 1.0 | ||
@@ -268,2 +272,1 @@ - v0.2.1: Fixed destination path option. | ||
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/dannygarcia/grunt-jekyll/trend.png)](https://bitdeli.com/free "Bitdeli Badge") | ||
@@ -1,3 +0,3 @@ | ||
/*global module*/ | ||
'use strict'; | ||
module.exports = function (grunt) { | ||
@@ -43,5 +43,6 @@ var fs = require('fs'); | ||
var versionCommand = options.bundleExec ? 'bundle exec jekyll -v' : 'jekyll -v'; | ||
exec(versionCommand, function (error, stdout, stderr) { | ||
exec(versionCommand, function (error, stdout) { | ||
if (error) { | ||
grunt.log.error(error); | ||
grunt.fail.warn('Please install Jekyll before running this task.'); | ||
@@ -99,3 +100,3 @@ done(false); | ||
// Insert temporary config path into the config option | ||
if (typeof rawConfigFile != 'undefined') { | ||
if (typeof rawConfigFile !== 'undefined') { | ||
options.config = options.config ? options.config + ',' + rawConfigFile : rawConfigFile; | ||
@@ -123,3 +124,3 @@ } | ||
if (options.serve) { | ||
grunt.log.write('Started Jekyll web server on http://localhost:4000. Waiting...\n'); | ||
grunt.log.write('Started Jekyll web server on http://localhost:' + (options.port || 4000) + '. Waiting...\n'); | ||
} | ||
@@ -126,0 +127,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
0
0
253
11905
3
4
127
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedtmp@0.0.33(transitive)
- Removedtmp@0.0.21(transitive)
Updatedtmp@~0.0.23