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

Bundle Vue apps with Vite instead of Webpack #313

Merged
merged 20 commits into from Feb 15, 2024
Merged

Bundle Vue apps with Vite instead of Webpack #313

merged 20 commits into from Feb 15, 2024

Conversation

mayakokits
Copy link
Contributor

@mayakokits mayakokits commented Dec 7, 2022

Replace Webpack with Vite 3 for the Vue apps in e2t, update Vue and some dependencies. Dependencies are bundled with the apps, not used via campaignion_vue any more.

@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d49098c) 4.98% compared to head (c50970e) 4.14%.

Additional details and impacted files
@@             Coverage Diff              @@
##             7.x-2.x    #313      +/-   ##
============================================
- Coverage       4.98%   4.14%   -0.84%     
  Complexity      1947    1947              
============================================
  Files            306     269      -37     
  Lines          13083   12038    -1045     
  Branches         154       0     -154     
============================================
- Hits             652     499     -153     
+ Misses         12428   11539     -889     
+ Partials           3       0       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

campaignion_vue/campaignion_vue.module Outdated Show resolved Hide resolved
campaignion_email_to_target/messages_app/drupal-fixture.js Outdated Show resolved Hide resolved
campaignion_vue/campaignion_vue.module Outdated Show resolved Hide resolved
- Get rid of campaignion_vue, import dependencies directly
- Update vue to 2.7.7
- Build with Vite 3.2.4	instead of Webpack
- Run unit tests with Vitest
- Use Nightwatch 1.7.13 for end to end testing
- Update some dependencies: axios, element-ui, popper.js, vue-tables-2,
  vuedraggable
- Get rid of campaignion_vue, import dependencies directly
- For simplicity, copy DestinationField component and utils
  into this project
- Update vue to 2.7.7
- Build with Vite 3.2.4	instead of Webpack
- Run unit tests with Vitest
- Update some dependencies: axios, element-ui, vuedraggable
- Build with Vite 3.2.4 instead of Webpack
- Get rid of campaignion_vue, import dependencies directly
- For simplicity, copy DestinationField component and utils
  into this project
- Update vue to 2.7.7
- Update some dependencies: axios, element-ui, vuedraggable
- Run unit tests with Vitest
- Use Nightwatch 1.7.13 for end to end testing
- update eslint to support import.meta
- update eslint plugins
- update eslint config
- add script to run eslint --fix
- adapt code to comply with the rules
- don't provide a Node module any more
- remove dependencies, they are now bundled with the apps
- adapt Drupal module
- update README
@mayakokits
Copy link
Contributor Author

Now the redirects_app is bundled with Vite as well.
We still need the campaignion_vue module, as it provides localized strings for the Vue apps that can’t know the user's language at build time. But I cropped it down and removed all that is obsolete.

@mayakokits mayakokits changed the title Bundle datasets_app and messages_app with Vite instead of Webpack Bundle Vue apps with Vite instead of Webpack Nov 16, 2023
- add settings that were introduced in 3f13594 and c307b02 to be
  available in dev mode
- update README
- use the el-button notation throughout the datasets app
- remove invalid type="button" attribute
- add strings to drupal fixtures so they don't throw in dev env
- build all apps
@torotil torotil merged commit 5e5b568 into 7.x-2.x Feb 15, 2024
4 of 5 checks passed
@torotil torotil deleted the vue-apps-vite branch February 15, 2024 14:25
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.

None yet

2 participants