Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
*.user.jssources as browser extensions while keeping the original userscript files in place for existing raw GitHub installs.blink/for Chromium andmoz/for Firefox) and make future platform outputs (e.g. Safari) easier to add.Description
tools/build-extensions.mjsthat scans root*.user.jsfiles, parses userscript metadata, inlines@requirefiles that reference the repo's raw GitHub URLs, and produces bundled content scripts.package.jsonscripts (build:extensions,clean:extensions) to run the build locally or in automation..github/workflows/build-extensions.ymlthat runs the build, zipsblink/andmoz/outputs, and uploads them as artifacts.blink/andmoz/(each containsscripts/and a generatedmanifest.json), and document the build/load steps inREADME.md; original.user.jssources are not moved or renamed.Testing
npm run build:extensionswhich completed successfully and reported the number of bundled userscripts.blink/manifest.jsonandmoz/manifest.jsonto confirm expectedcontent_scripts,run_atmappings, and Firefoxbrowser_specific_settings.scripts/*.jsbundles in bothblink/andmoz/directories.Codex Task