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

Feature: Vite Build #3569

Merged
merged 6 commits into from
Sep 8, 2023
Merged

Feature: Vite Build #3569

merged 6 commits into from
Sep 8, 2023

Conversation

VitroidFPV
Copy link
Member

yarn build outputs into src/dist/. Should be ready to be deployed

@nerdCopter
Copy link
Member

for anyone else reviewing. re-execution of yarn install required.

@VitroidFPV , yarn dev and/or yarn vite failing for me.
image

However yarn preview and yarn review successful and blazingly fast after the build.

@github-actions

This comment has been minimized.

@VitroidFPV
Copy link
Member Author

for anyone else reviewing. re-execution of yarn install required.

@VitroidFPV , yarn dev and/or yarn vite failing for me. image

However yarn preview and yarn review successful and blazingly fast after the build.

It seems to be an issue with the copy plugin, I'm not sure why it's going wrong when it should just be copying some files. Will investigate

@nerdCopter
Copy link
Member

thanks!
these error do not exist in NWjs version.
image

@VitroidFPV
Copy link
Member Author

@nerdCopter the plugin used copies the files for builds but serves them directly when used in dev. I picked a different one that will just copy them no questions asked in both envs. Try now!

@sonarcloud
Copy link

sonarcloud bot commented Sep 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@VitroidFPV
Copy link
Member Author

I will look into the LESS loading issues, but that may be for another PR

@nerdCopter
Copy link
Member

same exact result.
yarn gulp debug is good.
yarn build ; yarn preview is good.
yarn dev is broken.

@VitroidFPV
Copy link
Member Author

same exact result. yarn gulp debug is good. yarn build ; yarn preview is good. yarn dev is broken.

Did you re-install the packages again? Can confirm it working locally now on :8000
image

@nerdCopter
Copy link
Member

nerdCopter commented Sep 7, 2023

yarn install --check-files
but same results. i'm not sure why 🤷‍♂️ i cleared my cache, disabled blockers, & restarted browser as well.
(only yarn dev not functioning.)

@blckmn
Copy link
Member

blckmn commented Sep 7, 2023

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> FAIL
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> FAIL
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> FAIL
  • Tested label found -> FAIL
  • assigned to an approver -> FAIL
  • approver count at least three -> FAIL

@haslinghuis
Copy link
Member

Works for me:

    git clean -xdf
    yarn && yarn dev

image

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

Do you want to test this code? Here you have an automated build:
Betaflight-Configurator-Linux
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

Do you want to test this code? Here you have an automated build:
Betaflight-Configurator-Android
Betaflight-Configurator-Linux
Betaflight-Configurator-macOS
Betaflight-Configurator-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

Copy link
Member

@nerdCopter nerdCopter left a comment

Choose a reason for hiding this comment

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

approving.
working today. did not have to do anything different. 🔮🤷‍♂️

serveLocalesPlugin(),
copy({
targets: [
{ src: ["locales", "resources", "src/tabs", "src/images"], dest: "src/dist" },
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, guessing we can't have /dist in the root because of root setting in vite config 🤔 Having it in src feels like will backfire

Copy link
Member

Choose a reason for hiding this comment

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

interesting and good catch. but it is ignored by default (.gitignore )

Copy link
Member Author

Choose a reason for hiding this comment

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

It was already set up that way in #3292. But yeah in src it will probably come back to bite us. What do you suggest?

Copy link
Member

Choose a reason for hiding this comment

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

Should we look into

image

Copy link
Member

Choose a reason for hiding this comment

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

Should we look into

i don't really understand the errors. they do go away upon re-execution. they tend to only present themselves with new code/execution

@haslinghuis haslinghuis merged commit 5f13c07 into betaflight:master Sep 8, 2023
9 checks passed
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.

5 participants