Created
November 11, 2014 14:22
-
-
Save dbernar1/7510e801aa52c896aa15 to your computer and use it in GitHub Desktop.
Gulpfile which converts CoffeeScript into JavaScript before running unit tests through Karma
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 coffee = require('gulp-coffee'), | |
karma = require('karma').server; | |
gulp.task('compile-tests-coffee', functoin() { | |
return gulp.src('./test/unit/**/*.coffee') | |
.pipe(coffee({bare: true})) | |
.pipe(gulp.dest('test/unit')); | |
}); | |
gulp.task('unit-test', ['compile-tests-coffee'], function () { | |
karma.start({ | |
configFile: __dirname + '/test/karma.config.js', | |
autoWatch: true | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment