Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #9 from olde86/master
Browse files Browse the repository at this point in the history
Refactor to support elixir 3.0.0
  • Loading branch information
CREEATION committed Aug 27, 2015
2 parents 26bd147 + 112e799 commit 755f22a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ var plumber = require('gulp-plumber');
var notify = require('gulp-notify');
var _ = require('underscore');

var Task = elixir.Task;

/*
|----------------------------------------------------------------
| Gulp Jade Wrapper
Expand Down Expand Up @@ -43,7 +45,7 @@ elixir.extend('jade', function (options) {

jade_options.basedir = options.baseDir + options.src;

gulp.task('jade', function () {
new Task('jade', function() {
return gulp.src(gulp_src)
.pipe(plumber())
.pipe(jade(jade_options))
Expand All @@ -56,12 +58,7 @@ elixir.extend('jade', function (options) {
message: 'All Jade Templates have been compiled.',
icon: __dirname + '/../laravel-elixir/icons/pass.png'
}));
});

this.registerWatcher('jade', [
options.baseDir + options.src + options.search
]);

return this.queueTask('jade');
})
.watch([ options.baseDir + options.src + options.search ]);

});
});

0 comments on commit 755f22a

Please sign in to comment.