forked from 2gis/node-rsvg
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgulpfile.js
More file actions
33 lines (27 loc) · 681 Bytes
/
gulpfile.js
File metadata and controls
33 lines (27 loc) · 681 Bytes
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
"use strict";
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');
gulp.task('jshint', function() {
return gulp.src([
'gulpfile.js',
'index.js',
'test/**/*.js'
])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('test', function() {
var opts = {
globals: ['should'],
timeout: 3000,
ui: 'bdd',
reporter: 'spec',
require: ['./test/helpers/chai.js']
};
return gulp.src([
'test/helpers/chai.js',
'test/**/*.test.js'
]).pipe(mocha(opts));
});
gulp.task('default', gulp.series(['jshint']));