Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kemp committed Apr 24, 2014
1 parent 440eddf commit f1eb9d7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'use strict';

var gulp = require('gulp'),
jshint = require('gulp-jshint'),
mocha = require('gulp-mocha');

var paths = {
scripts: ['./*.js', './test/*.js', '!./lib', '!./gulpfile.js']
};

gulp.task('lint', function() {
return gulp.src(paths.scripts)
.pipe(jshint())
.pipe(jshint.reporter('default'));
});

gulp.task('test', function() {
return gulp.src('./test/*.js')
.pipe(mocha({reporter: 'dot'}));
});

gulp.task('watch', function () {
gulp.watch(paths.scripts, ['lint', 'test']);
});

gulp.task('default', ['lint', 'test', 'watch']);

0 comments on commit f1eb9d7

Please sign in to comment.