summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-03-01 18:20:53 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-03-01 18:20:53 +0900
commita1cedfed99dacb54b65615db448f519cae99928e (patch)
treea7bb1480a220fb4ebdb12dbb86bc1d21bbdce19e
parentUpdate warning message (diff)
downloadsharkey-a1cedfed99dacb54b65615db448f519cae99928e.tar.gz
sharkey-a1cedfed99dacb54b65615db448f519cae99928e.tar.bz2
sharkey-a1cedfed99dacb54b65615db448f519cae99928e.zip
Clean up
-rw-r--r--gulpfile.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/gulpfile.ts b/gulpfile.ts
index 61b5d41b54..41a5e134fa 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) {