UNPKG

webappengine

Version:

A web application platform that can host multiple web apps running with Node.js.

18 lines (15 loc) 625 B
var gulp = require('gulp'); var jshint = require('gulp-jshint'); module.exports = function(options) { // Check JSON with JSHint gulp.task('jshint', function() { var jshintConfig = options.config.jshint; return gulp.src(jshintConfig.src) .pipe(jshint(jshintConfig.options)) // You can choose any JSHint reporter when you call // https://github.com/jshint/jshint/tree/master/src/reporters .pipe(jshint.reporter('default', {verbose: true})) .pipe(jshint.reporter('fail')) .on('error', options.errorHandler.error); }); };