You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Inject into tsconfig.client.test.js and fix injecting test_typings into tsconfig.client.js #1828
Used the above configuration but think this should apply for all Gulp and TypeScript flavors.
When running the tasks serve, build, watch, inject or directly running inject:tsconfig the tsconfig.client.js file is updated with all non-test ts files on the client side, along with both the regular typings and the test typings for the client side.
tsconfig.client.test.js is however never really updated with injections in the same way.
I would thus first suggest to change the injection of the tsconfig.client.js to only inject the regular typings, while a new task injects the test typings and all test ts files on the client side into tsconfig.client.test.js. Would then further add the new task to the inject task.
Did this change locally both in a fresh copy and in my own more advanced app. Working fine so far. Changes are as seen below.
Notes:
I would imagine inject:tsconfig and inject:tsconfigTest could be refactored to reduce duplicate code where one would further instead like to use the "filesGlob" in each tsConfig rather than write down the same thing again.
Should probably also do injection before tests and not really necessarily inject the test code for the serve and serve:debug tasks.
Found a racing condition bug that probably needs fixing before that. Will create a separate issue when I come home for that. Think I can do a PR for both tomorrow.
Issue has to do with task transpile:client and task constant needing to have been run before task copy:constant. So quick-fix should just be adding dependency: gulp.task('copy:constant', ['constant'], () => {
Activity
Koslun commentedon Apr 25, 2016
Found a racing condition bug that probably needs fixing before that. Will create a separate issue when I come home for that. Think I can do a PR for both tomorrow.
Issue has to do with task transpile:client and task constant needing to have been run before task copy:constant. So quick-fix should just be adding dependency:
gulp.task('copy:constant', ['constant'], () => {feat(gulp:ts): inject client .ts test files automatically into config…