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

BREAKING CHANGE: Switch to vite with electron-forge #469

Merged
merged 77 commits into from
May 17, 2024

Conversation

RobertGemmaJr
Copy link
Member

@RobertGemmaJr RobertGemmaJr commented May 13, 2024

Switches Honeycomb to the Vite compiler. Note that we use a Vite plugin (for electron-forge ) to run the app inside an Electron browser.

  • Updates scripts to use electron-forge when running the application
  • Removes dev script - we always pass a .env.* file
  • Uses import.meta.env from Vite instead of process.env

Firebase

  • Removes npm ci && npm run build:firebase from the GH actions
  • Adds npm ci and npm run build:firebase as predeploy scripts in firebase.json

Note that by doing this change the user doesn't have to worry about adding the predeploy script when they initialize Firebase hosting. One less step to simplify the onboarding process but I will have to update the documentation

@RobertGemmaJr RobertGemmaJr self-assigned this May 13, 2024
@broarr
Copy link

broarr commented May 15, 2024

Huh that's an interesting point. This is all part of the v4 release and I guess I kinda just internalized that the switch to a new compiler was a breaking change. But if all the logic is the same I suppose the whole point is that it doesn't break anything?

I think that's right, I looked for things that would break existing apis. I didn't see anything, but I could be wrong! Just wanted to check what you thought

@RobertGemmaJr RobertGemmaJr linked an issue May 16, 2024 that may be closed by this pull request
@RobertGemmaJr RobertGemmaJr merged commit ef3736f into feat-v4 May 17, 2024
8 checks passed
@RobertGemmaJr RobertGemmaJr deleted the feat-forge-vite branch May 17, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0 Versioning: Issue in regards to version 4.0.0 release dependencies Pull requests that update a dependency file
Projects
None yet
2 participants