-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to last Vue CLI v5 template #314
Conversation
Hi @sronveaux. |
Hi @fschmenger, Thanks for your reply, take your time, there's no hurry. I had a little time and everything was ready (just a few commits to cherry-pick) so it's here. Hope you'll like it ! Cheers, |
Hi @sronveaux. Regarding Karma and watch mode: The unit tests work fine in headless single-run mode. @chrismayer Could you give us some insights on what is supposed to work in watch mode, since I have no experience with that. See also I will add some comments inline, which are mostly questions. Maybe you have a second look there. Here is a summarization on the topics we discussed thoughout the previous PRs. I opened up some issues so we don't loose track of those. If I forgot something feel free to remind me :)
|
No, I have no experience with watch mode / stepwise debug for the unit tests either. For me it was enough to call the test suite most of the times I developed tests. The https://github.com/wegue-oss/wegue/blob/master/test/README.md was introduced by @justb4. Maybe he knows something about it. If it does not work properly with our tools anymore it might be OK to remove and make an issue of re-adding this debugging feature for v2 if someone really needs it. |
Hi @sronveaux I had a closer look at the unit tests again, and currently I`m getting this warning:
There is also a more severe bug when moving to OL 6.15.7- see #320. |
Hi @fschmenger, hi @chrismayer Thanks for the review and happy to see it is appreciated ! Concerning the @fschmenger concerning the warnings you see in Karma-Webpack, these should be irrelevant in our case as I'll explain just down here. The potential issues they warn about are very specific and would only happen in complex scenarii as you'll certainly understand. Also, given the fact that the latest version of
We could potentially remove those warnings be changing the webpack config manually when it's loaded in Unfortunately, I'm almost 100% sure the #320 error is not linked to those warnings and should be addressed apart... I'll comment on this issue as you requested as soon as I'll have time... At last, concerning the conversations you opened, I'll reply separately as soon as I'll have time to check before telling silly things ;-) Thanks again and hope this quite lengthy explanation will be useful to all, Cheers, |
Hi @sronveaux, thanks once again for the verbose explanation on how the build system behind Karma-Webpack works! Regarding the warnings: Those are no biggie. I assume that the entrypoint of the application will never be required for the unit tests. So we could just get rid of the warnings as you proposed in your snippet in #320. Regarding the build error with the new OL (described in #320):
To give a brief explanation why it is hitting us on the OL migration:
Note: I tried to fix it in
then it somehow gets rolled back under the hood to All of this results in the following questions:
Greets, |
I forgot one thing connected to the same topic: You pointed me to the karma-webpack source. As far as I can see it already should turn |
Hi @fschmenger, Glad that my boring explanations were not useless and helped you find the problem we had here ! For sure, I can try to solve this here as this is the most logical place to do so. I just have very few time for now and will do it as soon as I can. I'll have to delve a bit more inside this and see how we could bring all together cleanly. This totally makes sense and is unfortunately a big problem with what they've done with Concerning your question on Cheers, |
Hi @fschmenger, Good news, I had a very short time and managed to correct what you found directly inside the |
Hi @sronveaux. Excellent that you are looking into this! There`s no urgency at all so take your time. Cheers, |
Hi @fschmenger, I had a little time and managed to go to the bottom of it easier than expected. It is indeed directly linked to what I thought at first, the fact that the two recommended test frameworks are node-based and use Cheers, |
Hi @sronveaux. This makes perfect sense and also explains why my attempt to fix it under
and everything worked out as expected. Good work! |
Hi @fschmenger, Thanks for the comments, I just took a look to the remaining errors in unit tests and can assure you it has nothing to do with the generated bundle. I will certainly take the time to amend this PR next week with all the discussed contents, however I had a simple question/suggestion beforehand: In what you've written in your comments up here, I would replace the Have a nice day, |
Hi @sronveaux. Regarding
Cheers, |
Hi @fschmenger, Thanks for the fast reply! However, I'm pretty confident this won't change until |
Hi @sronveaux, |
Hi @fschmenger, Found the time before a meeting to amend the PR with all the comments. Cheers, |
Hi @sronveaux. Thanks for finalizing this! Looks like you forgot 1 important thing :) See my comments inline. Cheers, |
Hi @fschmenger, Stupid boy I am, forgot THE important line here! I had it so I suppose something went wrong during the cut / paste operation! I took the opportunity to tune one thing that came through my mind a few days ago and synced following the merge of #325 so this one should now be ready to go and ready to merge in upcoming V2! |
OK great, looks like we`re finally there. |
And thanks for your confidence, patience and time reviewing all those cumulative PRs! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot to all, who were involved here.
Hi @chrismayer, So good to see that Just a little warning here, I suppose you only merged PR #320 this morning... my PRs #298, #297 and #312 are marked as Thanks again and wish you a pleasant day, Cheers |
You are right @sronveaux, I had merged in up to fc2936a, and then cherry picked f9b0828. But I'm not sure if the commits after that have been included, my apologies. One option could be to rebase this branch with master to see which commits are missing after. |
Thanks for your important feedback @sronveaux and @spwoodcock. I totally agree that we should carefully check everything is in. @sronveaux could you please rebase this PR with current master as suggested by @spwoodcock ? Would be really cool and we would easily see, if there is something missing. |
The problem is, if you rebase everything and push-overwrite, you might lose a lot of information in here like comments to specific check- ins. So I suggest you either setup a new PR which contains everything based on master. The simpler approach could be to just merge the master with this PR again and make it available as a new PR. I unfortunately have no time to study the details at the moment. |
Thanks @fschmenger for sharing your concerns. So just merging in the current master into the base branch of this PR should be fine and less invasive. @sronveaux Could you do that? If this is not possible from your side I could do this but I would have to do in a new branch since I have no write permissions for your branch. |
Hi @chrismayer @spwoodcock @fschmenger, Thanks for your returns on this. @spwoodcock don't worry, things like this happen, it shouldn't be too hard to fix in the end! Cheers |
Hi @chrismayer, I just merged the current master as expected. I also verified the following:
That should do it. I just took the opportunity to correct the Hope this is now ready to go! Cheers, |
I just tested this with a recent application based on the current master. Everything looks good, the build works and the test suite passes. Therefore I'll happily merge this. Thanks again to all who were involved and especially @sronveaux for this last extra step to make this mergeable again. |
Hi team,
As I had a little time, I took it to create this last PR in the
Vue-CLI
upgrade series.This PR is again way smaller than #312 and should be way shorter to review too... the most difficult part was to make
karma-webpack
work.This one is based on the latest Vue CLI V5 template (5.0.8) which was published on the 7th of July 2022.
To stay in tune with #297 (comment), minimal versions of node and npm have been set according to the official Vue migration guide where it is stated that support for
Node.js
versions 8-11 and 13 were dropped. So once again I tookto use the first LTS version among the V14 ones.
Cheers
Sébastien