adafruit-io-node/gulpfile.js
2016-01-28 15:56:01 -05:00

36 lines
659 B
JavaScript

'use strict';
const gulp = require('gulp'),
jshint = require('gulp-jshint');
gulp.task('lint', function() {
const lint = jshint({
"esnext": true,
"curly": false,
"eqeqeq": true,
"immed": true,
"newcap": false,
"noarg": true,
"sub": true,
"unused": "var",
"boss": true,
"eqnull": true,
"node": true,
"-W086": true
});
return gulp.src([
'index.js',
'cli/*.js',
'homekit/*.js',
'client/**/*.js',
'server/index.js',
'server/lib/*.js',
'tunnel/index.js',
'tunnel/lib/*.js'
]).pipe(lint).pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('default', ['lint']);