Skip to content
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

Use vite for dev #164

Merged
merged 1 commit into from
Jul 19, 2022
Merged

Use vite for dev #164

merged 1 commit into from
Jul 19, 2022

Conversation

mst101
Copy link
Contributor

@mst101 mst101 commented Jul 4, 2022

This (at least) allows us to use vite to run the Demo pages while we're developing the vue 2 branch.

I reworked some of your 'vue3-support' code @MrWook to get the vite build process to work, but then abandoned the idea once I discovered that @vitejs/plugin-legacy is not compatible with vue2.

I also had a go at setting up vitest as an alternative to jest, but it seems that vitest uses a different coverage tool to jest (c8 instead of nyc) and this caused some inconsistencies in the reports. There is a debate going on currently within vitest as to whether to give the choice between c8 and nyc, but until that's resolved, I suspect we're probably best off sticking with jest.

As you can see I tried to upgrade jest to the latest version, but that failed because node 10 doesn't like globalThis.

Oh well, guess I'll get back to upgrading to vue 3...

@MrWook
Copy link
Collaborator

MrWook commented Jul 18, 2022

Seems fine to me but here are some changes from the previous PR so that should be merged first

@mst101 mst101 force-pushed the tools/use-vite-for-dev branch 5 times, most recently from 3414623 to 5cfef6d Compare July 18, 2022 20:10
@MrWook
Copy link
Collaborator

MrWook commented Jul 19, 2022

@mst101 with the jest update this one got some conflicts

@mst101
Copy link
Contributor Author

mst101 commented Jul 19, 2022

@MrWook - yay! Hope this one should be ok now...

@MrWook MrWook merged commit bbabb2a into sumcumo:master Jul 19, 2022
@mst101 mst101 deleted the tools/use-vite-for-dev branch August 4, 2022 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants