Created
May 19, 2015 13:34
-
-
Save pinalbhatt/b8013ee9a8d706dc5163 to your computer and use it in GitHub Desktop.
Gulp Code Review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
var gUtil = require('./../gulp.utils.js')(); | |
gulp.task('codeReview', function() { | |
gUtil.log('Analyzing source .JS files with JSCS & JSHint'); | |
return gulp | |
.src(gUtil.configs.serverJS) | |
.pipe(gUtil.GP.if(gUtil.args.verbose, gUtil.GP.print())) | |
.pipe(gUtil.GP.jscs()) | |
.pipe(gUtil.GP.jshint()) | |
.pipe(gUtil.GP.jshint.reporter('jshint-stylish', {verbose:true})) | |
.pipe(gUtil.GP.jshint.reporter('fail')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment