Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/onekeyhq/cross-inpage-provider


https://github.com/onekeyhq/cross-inpage-provider

frontend

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# cross-inpage-provider

[OneKey DApp Example](https://dapp-example.onekeytest.com/)

# Init monorepo

```bash
yarn
yarn bootstrap
yarn build
```

# Develop monorepo

```bash
# Clean cache
yarn clean && yarn bootstrap

# Start watch and build all packages
yarn start

# check and configure .env file
# if not exist, copy .env.example to .env
# if exist, check and update APP_MONOREPO_LOCAL_PATH
APP_MONOREPO_LOCAL_PATH=/path/to/your/app-monorepo

# watch and build `packages/injected`, then rsync local npm packages to app-monorepo
# re-build `packages/injected` only, if you change others monorepo code, run `yarn build`
# open new terminal
yarn gulp-watch
```

# Run dapp example web

```bash
yarn example
```

# Update all versions before publish

```bash
yarn update-version 1.0.1
```

# Publish to npmjs.com

```bash
yarn publish-packages
```

# E2E Test

```
# start dev runtime build
yarn && yarn bootstrap && yarn start

# run e2e test headless
yarn test:e2e

# run e2e test headed
yarn test:e2e:headed

# check e2e reports & screenshots
# packages/e2e/playwright-report
# packages/e2e/test-results

```

packages/providers/inpage-providers-hub/src/connectButtonHack/universal/config.ts

skip connectButton site test

```
skip: { mobile: true, desktop: true },
```

only connectButton site test

```
only: true,
```