forked from englercj/mongoose-cache-manager
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.js
33 lines (29 loc) · 796 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var gulp = require('gulp'),
mocha = require('gulp-mocha'),
jshint = require('gulp-jshint');
/*****
* JSHint task, lints the lib and test *.js files.
*****/
gulp.task('jshint', function () {
return gulp.src(['./lib/**/*.js', './test/**/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
/*****
* Test task, runs mocha against unit test files.
*****/
gulp.task('test', ['jshint'], function () {
return gulp.src('./test/unit/**/*.test.js', { read: false })
.pipe(mocha({
ui: 'bdd',
reporter: 'spec'
}));
});
/*****
* Default task, runs jshint and test tasks.
*****/
gulp.task('default', ['test']);
/*****
* CI test task, runs jshint and test tasks.
*****/
gulp.task('testci', ['test']);