I'm trying to build a jekyll site using Gulp.js. I've read that I shouldn't use a plugin in this question.
I've been investigating using a child process as suggested but I keep getting an error:
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
Here's my gulp file:
var gulp = require('gulp');
var spawn = require('child_process').spawn;
var gutil = require('gulp-util');
gulp.task('jekyll', function (){
spawn('jekyll', ['build'], {stdio: 'inherit'});
});
gulp.task('default', ['jekyll']);
What am I doing wrong? I'm on Node 0.10.25, Win 7.
EDIT I've had a google around ENOENT errors previously. Have checked my path and Ruby is there and I can run jekyll from the command line. Still no joy.