1
0
forked from mirror/misskey

Update gulpfile.ts

This commit is contained in:
syuilo 2020-02-01 06:32:21 +09:00
parent 3f2f4fa32e
commit d355f3f77c

View File

@ -5,6 +5,7 @@
import * as fs from 'fs';
import * as gulp from 'gulp';
import * as ts from 'gulp-typescript';
import * as mocha from 'gulp-mocha';
import * as rimraf from 'rimraf';
import * as rename from 'gulp-rename';
const cleanCSS = require('gulp-clean-css');
@ -84,4 +85,14 @@ gulp.task('build', gulp.parallel(
'build:client',
));
gulp.task('mocha', () =>
gulp.src('./test/**/*.ts')
.pipe(mocha({
exit: true,
require: 'ts-node/register'
} as any))
);
gulp.task('test', gulp.task('mocha'));
gulp.task('default', gulp.task('build'));