Skip to content

Commit

Permalink
Added gulp-watch for auto testing and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
avanes committed Apr 9, 2015
1 parent 83b16ca commit e3be4f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var gulp = require('gulp');
var watch = require('gulp-watch');

gulp.task('lint', function () {
var jshint = require('gulp-jshint');
Expand All @@ -13,4 +14,8 @@ gulp.task('test', function () {
return gulp.src('test/*.js', { read: false }).pipe(mocha());
});

gulp.task('watch', function() {
gulp.watch('**/*.js', ['default']);
});

gulp.task('default', ['lint', 'test']);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"dependencies": {
"color": "^0.8.0",
"postcss": "^4.0.3",
"gulp-watch": "^4.2.4",
"postcss-message-helpers": "^2.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit e3be4f2

Please sign in to comment.