OneKeyHQ / cross-inpage-provider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cross-inpage-provider

OneKey DApp Example

Init monorepo

yarn
yarn bootstrap
yarn build

Develop monorepo

# 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

yarn example

Update all versions before publish

yarn update-version 1.0.1

Publish to npmjs.com

yarn publish-packages

About

License:Other


Languages

Language:TypeScript 86.0%Language:JavaScript 13.4%Language:CSS 0.3%Language:SCSS 0.2%Language:Shell 0.2%