-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[PM-14485] Remove manifest and index.html logic from gulp #11861
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #11861 +/- ##
==========================================
- Coverage 33.48% 33.47% -0.01%
==========================================
Files 2844 2844
Lines 89044 89044
Branches 16987 16987
==========================================
- Hits 29812 29805 -7
- Misses 56887 56894 +7
Partials 2345 2345 ☔ View full report in Codecov by Sentry. |
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.
Very nice, I like it. We'll be able to delete all this 😀.
New Issues
Fixed Issues
|
@@ -125,20 +151,26 @@ | |||
"overlay/list.html", | |||
"popup/fonts/*" | |||
], | |||
"applications": { | |||
"__firefox__browser_specific_settings": { |
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.
applications
is deprecated since > 5 years ago, and we should use browser_specific_settings
.
…gulp # Conflicts: # package-lock.json
@@ -121,7 +121,7 @@ jobs: | |||
PACKAGE_VERSION: ${{ needs.setup.outputs.release-version }} | |||
run: | | |||
mv browser-source.zip browser-source-$PACKAGE_VERSION.zip | |||
mv dist-chrome-mv3.zip dist-chrome-$PACKAGE_VERSION.zip | |||
mv dist-chrome.zip dist-chrome-$PACKAGE_VERSION.zip |
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.
@bitwarden/dept-bre do we have any good way of testing the release flow? Run a dry-run in this branch and confirm it works?
…gulp # Conflicts: # package-lock.json # package.json
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 (only reviewed 10c9777)
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-14485
📔 Objective
Refactor the remaining logic from gulp.
Part of the browser build script refactor effort. bitwarden.atlassian.net/browse/PM-6683
Webpack is now responsible for performing most of the operations previously done by gulp. This includes:
The
package.json
is modified to include browser specific commands forbuild
,build:prod
,build:watch
anddist
.Manifests
Manifests now uses the
copy-webpack-plugin
transform
feature. The logic is located inapps/browser/webpack/manifest.js
. It reads a template, which supports some basic operations primarily overriding with browser specific fields using__browser__
.The
manifest.json
for both regular and mv3 builds are identical to our existing manifests except:applications
renamed tobrowser_specific_settings
.permissions
sorted alphabetically.Safari build
Safari requires additional packaging commands. This is implemented as a powershell script due to the cross-platform nature, and since we generally require powershell in our distribution pipelines.
An alternative would be to write it in bash, but bash is less powerful and would require some additional commands like
jq
. Another alternative is to write it using js, but that would require additional dependencies.⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes