obj2gltf/gulpfile.js

26 lines
658 B
JavaScript
Raw Normal View History

2016-06-09 13:33:08 -04:00
'use strict';
var jshint = require('gulp-jshint');
var gulp = require('gulp');
var jsHintFiles = ['index.js', 'bin/*.js', 'lib/*.js'];
gulp.task('default', ['jsHint']);
gulp.task('jsHint', function() {
return gulp.src(jsHintFiles)
.pipe(jshint.extract('auto'))
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('fail'));
});
gulp.task('jsHint-watch', function() {
gulp.watch(jsHintFiles).on('change', function(event) {
gulp.src(event.path)
.pipe(jshint.extract('auto'))
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
});