gulp-jade-inheritance
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -19,9 +19,12 @@ 'use strict'; | ||
function writeStream(currentFile) { | ||
if (currentFile) { | ||
if (currentFile && currentFile.contents.length) { | ||
var currentFileOptions = _.defaults(options, {'basedir': currentFile.base}); | ||
var jadeInheritance = new JadeInheritance(currentFile.path, currentFileOptions.basedir, currentFileOptions); | ||
var filepath; | ||
for (var i = 0; i < jadeInheritance.files.length; i++) { | ||
files.push(options.basedir + "/" + jadeInheritance.files[i]); | ||
filepath = options.basedir + "/" + jadeInheritance.files[i]; | ||
if (_.indexOf(files, filepath) === -1) { | ||
files.push(filepath); | ||
} | ||
} | ||
@@ -28,0 +31,0 @@ } |
{ | ||
"name": "gulp-jade-inheritance", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Rebuild only changed jade files and all it dependencies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5512
127