forked from restorando/angular-pickadate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
30 lines (25 loc) · 701 Bytes
/
gulpfile.js
File metadata and controls
30 lines (25 loc) · 701 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
/* jshint strict: false, node: true */
var gulp = require('gulp');
var _ = require('lodash');
var karma = require('karma').server;
var karmaConf = require('./karma.conf');
var jshint = require('gulp-jshint');
gulp.task('lint', function() {
return gulp.src('./**/*pickadate*.js')
.pipe(jshint())
.pipe(jshint.reporter('default'))
.pipe(jshint.reporter('fail'));
});
/**
* Run test once and exit
*/
gulp.task('test', ['lint'], function (done) {
karma.start(_.assign({}, karmaConf, {singleRun: true}), done);
});
/**
* Watch for file changes and re-run tests on each change
*/
gulp.task('tdd', function (done) {
karma.start(karmaConf, done);
});
gulp.task('default', ['tdd']);