generator-landmark
Version:
A LandmarkJS Project Generator for Yeoman
31 lines (25 loc) • 677 B
JavaScript
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
jshintReporter = require('jshint-stylish'),
watch = require('gulp-watch');
/*
* Create variables for our project paths so we can change in one place
*/
var paths = {
'src':['./models/**/*.js','./routes/**/*.js', 'landmark.js', 'package.json'],
// enable for tests
//'tests':['./test/*.js', './test/**/*.js']
};
// gulp lint
gulp.task('lint', function(){
gulp.src(paths.src)
.pipe(jshint())
.pipe(jshint.reporter(jshintReporter));
});
// gulp watcher for lint
gulp.task('watchLint', function () {
gulp.src(paths.src)
.pipe(watch())
.pipe(jshint())
.pipe(jshint.reporter(jshintReporter));
});