Websocket
[VSoRC/.git] / node_modules / websocket / node_modules / yaeti / gulpfile.js
1 var
2         /**
3          * Dependencies.
4          */
5         gulp = require('gulp'),
6         jscs = require('gulp-jscs'),
7         jshint = require('gulp-jshint'),
8         stylish = require('gulp-jscs-stylish');
9
10
11 gulp.task('lint', function () {
12         var src = ['gulpfile.js', 'index.js', 'lib/**/*.js'];
13
14         return gulp.src(src)
15                 .pipe(jshint('.jshintrc'))  // Enforce good practics.
16                 .pipe(jscs('.jscsrc'))  // Enforce style guide.
17                 .pipe(stylish.combineWithHintResults())
18                 .pipe(jshint.reporter('jshint-stylish', {verbose: true}))
19                 .pipe(jshint.reporter('fail'));
20 });
21
22
23 gulp.task('default', gulp.task('lint'));