closes #4
This commit is contained in:
parent
782801bf4d
commit
e1e3dc94e8
7 changed files with 94 additions and 16 deletions
21
gulpfile.js
Normal file
21
gulpfile.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
'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}));
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue