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
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'], () => {
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 runninginject:tsconfig
thetsconfig.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 intotsconfig.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
andinject: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
andserve:debug
tasks.Should I take the time to do a PR with the shown changes or a variant of them?
The text was updated successfully, but these errors were encountered: