mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-01-12 09:43:44 +08:00
* Add the E2E test result section to the PR template * updated the pr description for running e2e tests * moved the E2E section from readme to PR description * updated the node version in the readme to 18 --------- Co-authored-by: DuskaT021 <aleksa2601@gmail.com>
1.3 KiB
1.3 KiB
xverse-extension
Installing and Running
Procedures
- Check if your Node.js version is >= 18.
- 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
Developing with local dependencies
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