mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Update gulpfile.ts
This commit is contained in:
parent
665491afb6
commit
5cb68d6635
1 changed files with 11 additions and 0 deletions
11
gulpfile.ts
11
gulpfile.ts
|
@ -5,6 +5,7 @@
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as gulp from 'gulp';
|
import * as gulp from 'gulp';
|
||||||
import * as ts from 'gulp-typescript';
|
import * as ts from 'gulp-typescript';
|
||||||
|
import * as mocha from 'gulp-mocha';
|
||||||
import * as rimraf from 'rimraf';
|
import * as rimraf from 'rimraf';
|
||||||
import * as rename from 'gulp-rename';
|
import * as rename from 'gulp-rename';
|
||||||
const cleanCSS = require('gulp-clean-css');
|
const cleanCSS = require('gulp-clean-css');
|
||||||
|
@ -84,4 +85,14 @@ gulp.task('build', gulp.parallel(
|
||||||
'build:client',
|
'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'));
|
gulp.task('default', gulp.task('build'));
|
||||||
|
|
Loading…
Reference in a new issue