From a1cedfed99dacb54b65615db448f519cae99928e Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Wed, 1 Mar 2017 18:20:53 +0900 Subject: [PATCH] Clean up --- gulpfile.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index 61b5d41b5..41a5e134f 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -31,8 +31,6 @@ if (isDebug) { const constants = require('./src/const.json'); -const tsProject = ts.createProject('./src/tsconfig.json'); - gulp.task('build', [ 'build:js', 'build:ts', @@ -51,12 +49,14 @@ gulp.task('build:js', () => .pipe(gulp.dest('./built/')) ); -gulp.task('build:ts', () => - tsProject +gulp.task('build:ts', () => { + const tsProject = ts.createProject('./src/tsconfig.json'); + + return tsProject .src() .pipe(tsProject()) .pipe(gulp.dest('./built/')) -); +}); gulp.task('build:about:docs', () => { function getLicenseHtml(path: string) {