mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-30 03:50:14 -05:00
26 lines
658 B
JavaScript
26 lines
658 B
JavaScript
'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'));
|
|
});
|
|
});
|