Created
October 6, 2015 17:35
-
-
Save aikoven/44697d24ea92f5b1f326 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import gulp from 'gulp'; | |
import ts from 'gulp-typescript'; | |
import babel from 'gulp-babel'; | |
import mocha from 'gulp-spawn-mocha'; | |
gulp.task('build', () => { | |
return gulp.src(['typings/tsd.d.ts', 'src/**/*.ts', 'test/**/*.ts']) | |
.pipe(ts({ | |
target: 'ES6', | |
outDir: 'build' | |
})) | |
.pipe(babel()) | |
.pipe(gulp.dest('build')) | |
; | |
}); | |
gulp.task('test', ['build'], () => { | |
return gulp.src('build/test/**/test_*.js', {read: false}) | |
.pipe(mocha({ | |
reporter: 'list', | |
require: ['babel-core/polyfill'] | |
})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment