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

Remove vue/cli as dependency and add missing polyfills #957

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Oct 22, 2024

vue/cli is not needed after the initial project scaffold, but as it is in maintenance mode, it leads to many dependency security issues for us. This PR removes it entirely from the repo, along with all of the extra deps it brings.

Note, this is different from the vue/cli-service, which is also deprecated, but simply provides some wrapper scripts for e.g., cypress, eslint, build, serve etc.

Because Javascript, removing vue/cli also breaks a load of webpack 5 polyfills, because vue/cli was already polyfilling the update from webpack 4 to 5 for us magically. So I've had to add those back in explicitly, with process and buffer

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.38%. Comparing base (a4cd422) to head (d9b02a8).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #957   +/-   ##
=======================================
  Coverage   68.38%   68.38%           
=======================================
  Files          62       62           
  Lines        3928     3928           
=======================================
  Hits         2686     2686           
  Misses       1242     1242           

Copy link

cypress bot commented Oct 22, 2024

datalab    Run #2626

Run Properties:  status check passed Passed #2626  •  git commit 23f34994c8 ℹ️: Merge d9b02a8487d622ef34bbf4a2052a12f128eb9ff5 into a4cd422e631918a296d64e447bbe...
Project datalab
Branch Review ml-evs/remove-vue-cli
Run status status check passed Passed #2626
Run duration 06m 15s
Commit git commit 23f34994c8 ℹ️: Merge d9b02a8487d622ef34bbf4a2052a12f128eb9ff5 into a4cd422e631918a296d64e447bbe...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 396
View all changes introduced in this branch ↗︎

@ml-evs ml-evs changed the title Remove vue/cli as dependency Remove vue/cli as dependency and add missing polyfills Oct 22, 2024
@ml-evs ml-evs added build For issues/PRs pertaining to the build or deployment of the package dependency_updates For issues/PRs that update the dependencies of the package javascript Pull requests that update Javascript code labels Oct 22, 2024
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything works fine for me !

@ml-evs ml-evs force-pushed the ml-evs/remove-vue-cli branch from e642702 to d9b02a8 Compare October 23, 2024 09:59
@ml-evs ml-evs merged commit 93b09be into main Oct 23, 2024
17 checks passed
@ml-evs ml-evs deleted the ml-evs/remove-vue-cli branch October 23, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build For issues/PRs pertaining to the build or deployment of the package dependency_updates For issues/PRs that update the dependencies of the package javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants