Skip to content
Snippets Groups Projects
Commit d355f3f7 authored by syuilo's avatar syuilo
Browse files

Update gulpfile.ts

parent 3f2f4fa3
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment