Skip to content

Commit

Permalink
fix(gulp:ts): fix gulp not using latest typescript config after changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Mar 10, 2016
1 parent 543d784 commit 6a6afd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -298,17 +298,17 @@ gulp.task('copy:constant', () => {
.pipe(gulp.dest('.tmp'));
})

let tsProject = plugins.typescript.createProject('./tsconfig.client.json');
gulp.task('transpile:client', ['inject:tsconfig', 'constant', 'copy:constant'], () => {
gulp.task('transpile:client', ['constant', 'copy:constant'], () => {
let tsProject = plugins.typescript.createProject('./tsconfig.client.json');
return tsProject.src()
.pipe(plugins.sourcemaps.init())
.pipe(plugins.typescript(tsProject)).js
.pipe(plugins.sourcemaps.write('.'))
.pipe(gulp.dest('.tmp'));
});

let tsTestProject = plugins.typescript.createProject('./tsconfig.client.json');
gulp.task('transpile:client:test', ['tsd:test'], () => {
let tsTestProject = plugins.typescript.createProject('./tsconfig.client.json');
return tsTestProject.src()
.pipe(plugins.sourcemaps.init())
.pipe(plugins.typescript(tsTestProject)).js
Expand Down

0 comments on commit 6a6afd9

Please sign in to comment.