21 lines
483 B
JavaScript
21 lines
483 B
JavaScript
'use strict';
|
|
|
|
var gulp = require('gulp');
|
|
var mocha = require('gulp-mocha');
|
|
var jshint = require('gulp-jshint');
|
|
var stylish = require('jshint-stylish');
|
|
|
|
gulp.task('lint', function () {
|
|
return gulp.src([
|
|
'./php-webkit/**/*.js',
|
|
'./lib/**/*.js'
|
|
])
|
|
.pipe(jshint())
|
|
.pipe(jshint.reporter(stylish))
|
|
.pipe(jshint.reporter('fail'));
|
|
});
|
|
|
|
gulp.task('test', ['lint'], function () {
|
|
return gulp.src('./tests/index.js')
|
|
.pipe(mocha({bail: true}));
|
|
});
|