Commit 16127fba by Ben Drucker

Configure gulp

parent 7b5d449e
'use strict';
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
gulp.task('cover', function () {
return gulp.src('./src/**/*.js')
.pipe(plugins.istanbul());
});
gulp.task('test', ['cover'], function () {
return gulp.src('./test/**/*.js')
.pipe(plugins.mocha())
.pipe(plugins.istanbul.writeReports());
});
\ No newline at end of file
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
"gulp": "3", "gulp": "3",
"gulp-istanbul": "0.3", "gulp-istanbul": "0.3",
"gulp-jshint": "1", "gulp-jshint": "1",
"gulp-load-plugins": "0.7",
"gulp-mocha": "1", "gulp-mocha": "1",
"jshint-stylish": "1", "jshint-stylish": "1",
"mocha": "1", "mocha": "1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment