diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2017-03-01 18:13:01 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2017-03-01 18:13:01 +0900 |
| commit | 659e350bc65462c99be02af104b1493baa2d86dc (patch) | |
| tree | bf2cdb61bf4231a8c1395112f13d8e2eccdd29d3 /gulpfile.ts | |
| parent | Extract after_success (diff) | |
| download | sharkey-659e350bc65462c99be02af104b1493baa2d86dc.tar.gz sharkey-659e350bc65462c99be02af104b1493baa2d86dc.tar.bz2 sharkey-659e350bc65462c99be02af104b1493baa2d86dc.zip | |
Use gulp-mocha
Diffstat (limited to 'gulpfile.ts')
| -rw-r--r-- | gulpfile.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gulpfile.ts b/gulpfile.ts index 08fdc7ec06..dfbc265357 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -19,6 +19,7 @@ import * as rimraf from 'rimraf'; import * as chalk from 'chalk'; import imagemin = require('gulp-imagemin'); import * as rename from 'gulp-rename'; +import * as mocha from 'gulp-mocha'; const env = process.env.NODE_ENV; const isProduction = env === 'production'; @@ -95,7 +96,7 @@ gulp.task('build:copy', () => ) ); -gulp.task('test', ['lint', 'build']); +gulp.task('test', ['lint', 'mocha']); gulp.task('lint', () => gulp.src('./src/**/*.ts') @@ -105,6 +106,13 @@ gulp.task('lint', () => .pipe(tslint.report()) ); +gulp.task('mocha', () => + gulp.src([]) + .pipe(mocha({ + compilers: 'ts:ts-node/register' + } as any)) +); + gulp.task('clean', cb => rimraf('./built', cb) ); |