-
Notifications
You must be signed in to change notification settings - Fork 4
DevelopmentInstructions
StevenGBrown edited this page Nov 11, 2022
·
9 revisions
Requirements:
- Git (https://git-scm.com/)
- Node 18 or later (https://nodejs.org/)
- npm 8 or later (https://www.npmjs.com/)
Build the script:
npm run build
This also runs the tests and checks the formatting.
After building:
-
The
dist/userscriptdirectory will contain the Userscript.- Enable the Tampermonkey extension in Mozilla Firefox.
- Open the script in the browser to install it.
-
The
dist/googlechromedirectory will contain the Google Chrome extension.- Open the
Tools -> Extensionspage. - Turn on
Developer Mode. - Click on
Load unpackedand select thedist/googlechromedirectory.
- Open the
npm test
When testing manually, see Features for a list of test cases.
The code is formatted with Prettier.
Format the code:
npm run format
Check whether the code is formatted correctly:
npm run format-check
(Requires access to the Greasy Fork and Google accounts.)
- Tag the release commit and push. e.g.
git tag -a 1.7.0 -m "1.7.0" git push --follow-tags - Download the build artifacts from the Github build for the tag.
- Upload the Userscript to Greasy Fork.
- Upload the Google Chrome extension to the Chrome Web Store Developer Dashboard.
- Update the Releases wiki page.