Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-jekyll

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jekyll - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

2

package.json
{
"name": "grunt-jekyll",
"description": "A custom grunt.js plugin that executes jekyll compile and/or watch for you",
"version": "0.2.2",
"version": "0.3.0",
"homepage": "https://github.com/dannygarcia/grunt-jekyll",

@@ -6,0 +6,0 @@ "author": {

@@ -9,2 +9,4 @@ # grunt-jekyll

This task works only with Jekyll 1.0. Please use versions prior to 0.3 for Jekyll prior to the 1.0 release - simply specify this version in your `package.json`.
## Quick Start

@@ -56,3 +58,3 @@

<tr>
<td><pre>auto</pre></td>
<td><pre>watch</pre></td>
<td><pre>[bool]</pre></td>

@@ -133,2 +135,4 @@ <td><pre>false</pre></td>

v0.3.0: Update for Jekyll 1.0
v0.2.1: Fixed destination path option.

@@ -135,0 +139,0 @@

@@ -28,9 +28,21 @@ module.exports = function (grunt) {

paginate : this.data.paginate,
limit_posts : this.data.limit_posts
limit_posts : this.data.limit_posts,
watch : this.data.watch
};
if (opt.server) {
command += ' serve';
if (opt.server_port) {
command += ' --port ' + opt.server_port;
}
console.log(command);
} else if (opt.server_port) {
command += ' serve --port ' + opt.server_port;
} else {
command += ' build';
}
if (opt.src) {
opt.src = grunt.template.process(opt.src);
} else {
opt.src = '.';
}

@@ -40,4 +52,2 @@

opt.dest = grunt.template.process(opt.dest);
} else {
opt.dest = './_site';
}

@@ -57,19 +67,6 @@

if (opt.auto) {
command += ' --auto';
} else {
command += ' --no-auto';
if (opt.auto || opt.watch) {
command += ' --watch';
}
if (opt.server) {
command += ' --server';
if (opt.server_port) {
command += ' ' + opt.server_port;
}
} else if (opt.server_port) {
command += ' --server ' + opt.server_port;
}
if (opt.baseurl) {

@@ -93,4 +90,2 @@ command += ' --base-url ' + opt.baseurl;

command += ' --future';
} else {
command += ' --no-future';
}

@@ -111,3 +106,3 @@

if (opt.limit_posts) {
command += ' --limit_posts=' + opt.limit_posts;
command += ' --limit_posts ' + opt.limit_posts;
}

@@ -114,0 +109,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc