-
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 v4 template #312
Conversation
…mplate. The biggest difference is updating to Webpack 3.x and using Webpack-dev-server instead of Express
…peerDeps and newer versions of NPM. This was already present before the latest updates though
… Changed their content to conform to the new template
…js@2 because Vue-CLI V3 is incompatible with core-js@3
…g of eslint to devServer
…port config file deprecations
… mocha and chai functions
.eslintrc.js
Outdated
// 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
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.
Personally I would prefer to raise a 'no-debugger' error for production environments.
And as a future proposal - probably as part of a seperate PR:
Maybe we could do something about the 'no-console' setting. E.g. we could pool all wegue logging operations into a logger module and then use the eslint-disable
directive there. So warnings could be generally enabled.
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.
No problem to revert the change, simply, that's not something that I personally changed, this is what is present in Vue-CLI V4
and Vue-CLI V5
templates.
Your future proposal is intersting, it would be nice to enable this rule in the end for sure!
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.
Reverted to raise error if debugger
is used while building for production
Hi @sronveaux. I didn`t find time to give this a test yet - hopefully will have by the beginning of next year. Regarding The choice of Anyway, thanks a lot for providing this so quickly! I wish you a nice and relaxing christmas time. |
Hi @fschmenger, Thanks for the fast reply, don't worry and take your time...
Installing the plugin is not an option when creating an app but almost. When the new app is created, you start by running Cheers, |
Hi @sronveaux. One last finding:
I haven`t installed vuetify in the template app, but might be the same thing. Could you check that? Anyway I hope you had some relaxing christmas days. |
Ooops, I just discovered that the docker build is failing at For me it currently results in this build error:
Here is some background I found on Stack overflow. Could you have a look into that too? Maybe something along the proposed solutions e.g. using |
Hi @fschmenger and thanks for the review ! Christmas break was very resourcing, hope it was great for you too! All the best for 2023 for you and your family, and to the rest of the team too! I took the time to look at the two things you mentioned up there and here is what I arrived to:
You're true that the official Vue template tags Vue as For sure I can easily change this but it all depends how @chrismayer feels about #295. Should I change it in this PR or should it be done in #295 ? I'm planning to get back on the upgrade to
That way it shouldn't break anything as compared to what was experienced with #295. I have the feeling there shouldn't be any problem when upgrading
Gosh I missed this one... to be honest I don't use The idea of using I have to mention that I tested with the update to As this will be fixed if I manage to make unit tests working in Just tell me what you think about those two points and I'll amend the PR accordingly ! Cheers, |
Hi @sronveaux, Regarding the vue/ vuetify versions you are absolutely right. I just found this when comparing the code against the template generated definitions. Since we already figured out in #295, that some of the code isn't compatible, I think you can just leave it as is. We can look into this in the process of a v5 template again. Since all of this will be part of Wegue v2 some smaller breaking changes are no biggie. The second point is a bit unfortunate. I agree that we should rather sit on the upcoming v5 version then. If this is our best bet, then I'm fine to set the proposed Cheers, |
Hi @fschmenger @chrismayer and @JakobMiksch, I don't know if this is the best place to discuss this... I took back my tests of upgrading Wegue to Vue-CLI V5 which was 99% done but had a bug when using At that time, I arrived at the point where I could run the unit tests but only in Now that I try this again with a fresh mind, I think that my lack of practice with That's why I open this discussion here and ask to all of you who certainly have more practice of Depending on your comments and feelings, I think I can prepare the long-awaited PR to upgrade Wegue to Vue-CLI V5 which is perhaps not having problems in the end... I just have a (real) problem left, which I discovered is in fact also present in the upgrades to Vue-CLI V3 and V4... code coverage doesn't take Thanks in advance for your comments and all the best to the team Cheers, |
… routines:unsupported error in Webpack4 with recent Node.js versions
Just a word to let you know that I resolved the coverage bug described above. So I amended the PR with this and the workaround needed to function properly with recent Node.js versions... |
Hi @sronveaux, Regarding the browser debugging functionality I never tried anything with the unit tests apart from the headless single-run functionality. However I can point you to the Cheers, |
Hello,
Eventually I had the time to create this PR we talked about for months now! Hope this will work flawlessly...
This PR is way smaller than Vue CLI3 and should be way shorter to review too... I still hope to find time to make
Wegue
fully functional with Vue-CLI V5 in a not too distant future... it already is, only unit tests are having some troubles...This one is based on the last Vue CLI V4 template (4.5.19).
New Wegue functionalities developed since this migration was done have been merged before applying. So this PR should be up to date for now...
To stay in tune with one of our previous discussions, minimal versions of
node
andnpm
have been set according to the official Vue documentation where it is stated that minimal recommended version isV10+
. However I tookto use the first LTS version among
V10
ones.We also discussed an issue with the portfinder mechanism:
it seems to be working as expected with the underlying updates that this PR makes.
If this is of interest for you and to make a followup of my comment, I can try and see if I can easily add the official
Vuetify
plugins in order to have access toVuetify ESLint rules
. I already did it withESLint plugin
only, not with the full plugins pack. Just tell me if this is of interest and I'll give it a try as soon as I'll have a little time...Merry X-Mas to the whole team!
Cheers
Sébastien