Comparing version 0.0.1 to 0.0.3
@@ -29,3 +29,8 @@ var through = require('through2'), | ||
var contents = Vdt.compile(file.contents.toString(), options.autoReturn).source; | ||
// if is a js file return | ||
if (/\.js$/.test(file.path)) { | ||
return cb(); | ||
} | ||
var contents = Vdt.compile(file.contents.toString(), options).source; | ||
if (options.amd) { | ||
@@ -42,2 +47,2 @@ contents = 'define(function(require) {\n return ' + contents + '\n})'; | ||
}); | ||
}; | ||
}; |
{ | ||
"name": "gulp-vdt", | ||
"description": "a plugin of gulp for compiling vdt template", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -8,2 +8,8 @@ var gulp = require('gulp'), | ||
.pipe(gulp.dest('tpl')); | ||
}); | ||
}); | ||
gulp.task('js', function() { | ||
gulp.src('tpl/**/*.js') | ||
.pipe(vdt()) | ||
.pipe(gulp.dest('tpl')); | ||
}); |
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
2824
69