- Check if your Node.js version is >= 14.
- Clone this repository.
- Make sure you're logged in to the @secretkeylabs scope on the GitHub NPM package registry. See the Guide
- Create a GitHub personal access token (classic)
- Run
npm login --scope=@secretkeylabs --registry=https://npm.pkg.github.com - Username: GITHUB USERNAME Password: PERSONAL_ACCESS_TOKEN Email: PUBLIC-EMAIL-ADDRESS
- Add .env file (example: .env.example)
- Run
npm installto install the dependencies. - Run
npm start - Load your extension on Chrome following:
- Access
chrome://extensions/ - Check
Developer mode - Click on
Load unpacked extension - Select the
buildfolder.
- Access
Use esm build, and reference your filesystem in package.json
For example, if your xverse-core and xverse-web-extension are in same directory, make or pull your local changes to xverse-core, then:
cd ../xverse-core && npm i && npm run build:esm && \
cd $OLDPWD && npm i --legacy-peer-deps @secretkeylabs/xverse-core@../xverse-core && npm start
Our End-to-end (E2E) test suite is build with Playwright. To run the whole E2E test suite, run:
npm run e2etest
If you only want to run the smoke test suite, run
npm run e2etest:smoketest
If you want to run the e2e test in UI Mode:
npm run e2etest:ui
To generate test report, run:
npm run e2etest:report