{"size": 609, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "cirocosta/learn-js-algos-101", "max_stars_repo_stars_event_min_datetime": "2015-04-24T22:49:28.000Z", "max_stars_repo_stars_event_max_datetime": "2015-04-24T22:49:28.000Z", "max_issues_repo_path": "gulpfile.js", "max_issues_repo_name": "cirocosta/learn-js-algos-101", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulpfile.js", "max_forks_repo_name": "cirocosta/learn-js-algos-101", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.4230769231, "max_line_length": 62, "alphanum_fraction": 0.5024630542}
var gulp = require('gulp'),
    gutil = require('gulp-util'),
    mocha = require("gulp-mocha"),
    watch = require('gulp-watch'),
    jshint = require('gulp-jshint');

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

    gulp.src('src/**/*.js')
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});



gulp.task('watch', function() {
    gulp.watch('./**/*.js', function (event) {
        gutil.log('File ' + event.path + 'was ' + event.type +
            ',running tasks');
        gulp.run('test');
    });
});