-
-
Notifications
You must be signed in to change notification settings - Fork 917
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
feat: only use rollup output for build #3597
feat: only use rollup output for build #3597
Conversation
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
"debug" version - Debian Linux 11 before/master:
installed: after/pr-3597:
installed: oddly, all the *.js in the root installation folder, not the problems found: |
Thanks! There is a small, long-term problem (not just from this PR) with the content of the Mac '.dmg' file. If I download the Build for macOS, I get a file Double-click this -> betaflight-configurator_10.10.0-debug-daf3709_macOS.dmg (size 150.6Mb) Double-click this -> disk image opens normally. Is it possible to distribute the Mac version not as a zip of the dmg, but as the dmg itself? ie, at the stage of zipping the .dmg into a zip archive, omit that step for the Mac version? Normally, Mac applications are distributed as dmg's only. |
When testing this PR, using macOSX, all the javascript files for Tabs, ie all those from The tabs still work properly. |
@ctzsnooze , did your flashing tab allow for flashing? mine did not in this PR. |
Old versions of Configurator retained the .js files inside the |
What is the value in that? We don't include the source for C code why should we do that for configurator? I could adjust the rollup to keep that structure if we really do need it. |
so the packaged configurator does not run plain javascript? how does debug/inspect work? i see plaintext javascript in it. |
It does, but it's bundled based on usage ( I will look into slightly different builds for prod and debug. I don't think you can even open dev tools in production builds. We can see the original structure of the files etc. because of the sourcemaps (those |
@chmelevskij please have a look - as Flash Firmware is not available after loading firmware. |
Hey there, will try to find time for this today 🙈 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7761de5
to
fa08d35
Compare
This comment has been minimized.
This comment has been minimized.
@haslinghuis, had to copy in worker script we use in flasher tab https://github.com/betaflight/betaflight-configurator/blob/master/src/js/workers/hex_parser.js seemed to work now. Please verify |
git clean -xdf - so have to rebuild :) |
This comment has been minimized.
This comment has been minimized.
fbcd67d
to
5f4716e
Compare
Quality Gate failedFailed conditions 15.5% Duplication on New Code (required ≤ 3%) |
Do you want to test this code? Here you have an automated build: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- approving, briefly tested both vite and nwjs
chore: reduce final package build output
Current build setup copies files into folder and then runs full yarn installation.
Since we are building everything based on the usage we don't need all the
node_modules
and friends.This changes reduces final package size after unpack on mac by ~100mb. Need to verify other platforms
Before
After