Created
August 19, 2014 16:29
-
-
Save chrisforrette/ad6dd1206aadd242cc7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var mocha = require('gulp-mocha-phantomjs'); | |
var server = require('gulp-webserver'); | |
// Run tests in the command line | |
gulp.task('test', function() { | |
return gulp.src('./datu_dashboard/static/test/index.html') | |
.pipe(mocha({ | |
reporter: 'dot' | |
})); | |
}); | |
// Serve test in-browser at http://localhost:9000/test/index.html | |
gulp.task('serve-test', function () { | |
gulp.src('./datu_dashboard/static') | |
.pipe(server({ | |
livereload: true, | |
port: 9000 | |
})); | |
}); | |
gulp.task('default', ['test']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment