This project uses workspaces to place the examples and requires npm version 7.x or higher.
npm install
# download the browser extensions required for testing
npm run setup
You'll be playing with the playground's userscripts during development.
- Run:
npm run playground
- Open the dev script's URL printed in the console and install it as in the user guide.
- Open the dev server's URL printed in the console, e.g.
http://localhost:8080
. - Now the playground userscripts are running on that page.
# run tests with Tampermonkey and Violentmonkey
npm run test
# run tests and update snapshots
npm run test:u
# run tests with Tampermonkey
npm run test:tm
# run tests with Violentmonkey
npm run test:vm
# run tests with Tampermonkey in debug mode
npm run test:tm:h
# run tests with Tampermonkey in UI mode
npm run test:tm:ui
After making changes to the code, you can rebuild the examples to check if everything works as expected:
npm run build
npm run examples
npm run examples:remote