Run the onekey sdk project

hardware-js-sdk development

Before you start make sure you have downloaded and installed NVM, Yarn and git with git lfs.

  • git clone [email protected]:OneKeyHQ/hardware-js-sdk.git
  • git submodule update --init --recursive
  • yarn
  • yarn bootstrap

Run a dev build:

  • yarn dev:web (web sdk)
  • yarn dev:ble (react-native sdk)
  • yarn dev:core (core package)
  • yarn dev:transport-http (transport-http package)
  • yarn dev:shared (shared package)

The above is the content proposed by the official. Among them, there is an error in the first step of git clone. The guess is that the author did not update the changes in the code warehouse.

So the second step is also wrong,

git submodule sync --recursive
git submodule update --init --recursive
here updates the url of the original path

 

(ps: This is metaphysics, some can update the submodule, and some can't)

After that, the steps are normal, but on the yarn dev:web, one place needs to be modified

Open the package.json file

 After that the web should be able to run

Guess you like

Origin blog.csdn.net/m0_73016265/article/details/130217059