Websocket
[VSoRC/.git] / node_modules / websocket / node_modules / yaeti / gulpfile.js
diff --git a/node_modules/websocket/node_modules/yaeti/gulpfile.js b/node_modules/websocket/node_modules/yaeti/gulpfile.js
new file mode 100644 (file)
index 0000000..294cd9c
--- /dev/null
@@ -0,0 +1,23 @@
+var
+       /**
+        * Dependencies.
+        */
+       gulp = require('gulp'),
+       jscs = require('gulp-jscs'),
+       jshint = require('gulp-jshint'),
+       stylish = require('gulp-jscs-stylish');
+
+
+gulp.task('lint', function () {
+       var src = ['gulpfile.js', 'index.js', 'lib/**/*.js'];
+
+       return gulp.src(src)
+               .pipe(jshint('.jshintrc'))  // Enforce good practics.
+               .pipe(jscs('.jscsrc'))  // Enforce style guide.
+               .pipe(stylish.combineWithHintResults())
+               .pipe(jshint.reporter('jshint-stylish', {verbose: true}))
+               .pipe(jshint.reporter('fail'));
+});
+
+
+gulp.task('default', gulp.task('lint'));