Skip to content

Commit 663a4bb

Browse files
committed
refactor(gulp:ts): remove deprecated tsconfig injection tasks
1 parent d5e18f1 commit 663a4bb

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

Diff for: templates/app/gulpfile.babel(gulp).js

+2-35
Original file line numberDiff line numberDiff line change
@@ -181,41 +181,8 @@ gulp.task('env:prod', () => {
181181
********************/
182182

183183
gulp.task('inject', cb => {
184-
runSequence(['inject:css'<% if(!filters.css) { %>, 'inject:<%= styleExt %>'<% } %><% if(filters.ts) { %>, 'inject:tsconfig'<% } %>], cb);
185-
});<% if(filters.ts) { %>
186-
187-
function injectTsConfig(filesGlob, tsconfigPath){
188-
let src = gulp.src(filesGlob, {read: false})
189-
.pipe(plugins.sort());
190-
191-
return gulp.src(tsconfigPath)
192-
.pipe(plugins.inject(src, {
193-
starttag: '"files": [',
194-
endtag: ']',
195-
transform: (filepath, file, i, length) => {
196-
return `"${filepath.substr(1)}"${i + 1 < length ? ',' : ''}`;
197-
}
198-
}))
199-
.pipe(gulp.dest('./'));
200-
}
201-
202-
gulp.task('inject:tsconfig', () => {
203-
return injectTsConfig([
204-
`${clientPath}/**/!(*.spec|*.mock).ts`,
205-
`!${clientPath}/bower_components/**/*`,
206-
`typings/main.d.ts`
207-
],
208-
'./tsconfig.client.json');
209-
});
210-
211-
gulp.task('inject:tsconfigTest', () => {
212-
return injectTsConfig([
213-
`${clientPath}/**/+(*.spec|*.mock).ts`,
214-
`!${clientPath}/bower_components/**/*`,
215-
`typings/main.d.ts`
216-
],
217-
'./tsconfig.client.test.json');
218-
});<% } %>
184+
runSequence(['inject:css'<% if(!filters.css) { %>, 'inject:<%= styleExt %>'<% } %>], cb);
185+
});
219186

220187
gulp.task('inject:css', () => {
221188
return gulp.src(paths.client.mainView)

0 commit comments

Comments
 (0)