A browser extension for replacing text on webpages.
To get started, you'll need:
Set your desired target environment using NODE_ENV
:
export NODE_ENV=development
- Install dependencies
yarn install
⚠️ IMPORTANT: In order to test in Firefox, you need to build AmplifyJS locally and link its@aws-amplify/core
package to this project (bug report here: aws-amplify/amplify-js#14180):- Update the fork https://github.com/dan-lovelace/amplify-js and clone it
- Checkout branch
core/fix-convert-firefox-context
- Run
yarn build
- Run
yarn link-all
- Change back into the WRM repository
- Run
yarn link @aws-amplify/core
- Run
yarn install
(use with the--force
flag whenunlink
ing)
- Run the
build
command using whichever manifest version you desire (2
or3
)yarn build 3
- The resulting build exists in the
dist
directory which can be used to load an unpacked extension in your browser
After following the dependency installation instructions above, use the
start:*
command to start a development server using a given manifest version.
For version 2:
NODE_ENV=development yarn start:2
File changes can be seen in real-time and may require the extension to be reloaded.
- A file
packages/popup/cypress/.env.private
populated with testing credentials - Contact the repository owner if you do not have these.
To run all tests:
- Start the Popup development server in test mode
VITE_MODE=test yarn workspace @worm/popup dev
- Use the "test all" command
yarn test:all
See the individual test:*
commands in package.json
to run specific types of
tests.
- Bump the version in
package.json
- Run the
package
command, targeting the correct manifest versionyarn package 3
- The resulting package exists in the
versions
directory which is to be used when uploading a new version to the extension stores