-
Notifications
You must be signed in to change notification settings - Fork 61
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
Make esbuild to produce bundled & minified VSIX #4584
Make esbuild to produce bundled & minified VSIX #4584
Conversation
6ebcdf0
to
cc8dbde
Compare
44c567e
to
90b3305
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4584 +/- ##
===========================================
+ Coverage 32.37% 44.51% +12.14%
===========================================
Files 85 100 +15
Lines 6505 8170 +1665
Branches 1349 1707 +358
===========================================
+ Hits 2106 3637 +1531
- Misses 4399 4533 +134 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
2365001
to
39f4aeb
Compare
39b38f8
to
8f1e748
Compare
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.
Looking almost ready for merge. Found some potentially unused code
8f1e748
to
2fb7ca9
Compare
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.
Looks good and works for me. Thanks Victor!
2fb7ca9
to
7361dff
Compare
@lgrossma Could you please take a look at UI tests:
|
90e09bc
to
cf3a5a1
Compare
The Public UI tests are restored. |
cf3a5a1
to
cc4cefc
Compare
This fix makes 'esbuild' to produce the bundled and minified VSIX extension archive, free of unneeded dependency modules, when the packaging is started with `vsce package`. On other hand, when building with `npm install && npm run build` and testing with `npm test` the extension file structure is kept unchange and the trunspiled scripts aren't minified, so the unit testing and coverage tests work as usual. Note: `npm install` is needed to be executed after executing `vsce package` as the last one clears the `node_modules/` of the depencencies not needed in production. Fixes redhat-developer#4226 Signed-off-by: Victor Rubezhny <[email protected]>
cc4cefc
to
8201122
Compare
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.
LGTM
@datho7561 @msivasubramaniaan Thanks for the reviews and @lgrossma for helping with the tests! |
This fix makes 'esbuild' to produce the bundled and minified VSIX extension archive,
free of unneeded dependency modules, when the packaging is started with
vsce package
.On other hand, when building with
npm install && npm run build
and testing withnpm test
the extension file structure is kept unchange and the trunspiled scripts aren't minified,
so the unit testing and coverage tests work as usual.
Note:
npm install
is needed to be executed after executingvsce package
as the last oneclears the
node_modules/
of the dependencies not needed in production.Fixes #4226