scr-sdk
v0.0.31
Published
Beta
Downloads
4
Readme
Install
Install using npm install simple-web3-sdk
Dev
- npm install
- in the project root run
npm run build
ornpm run build-win
. This will make the dist file which is actually used as a package. - in the project root run
npm link
- go to the project root where you'll be testing this
- run
npm link simple-web3-sdk
(this creates a symbolic link in node_modules to this repo so it can be tested without deploying) - your test app will likely need to be ejected so you can modify
webpack.config.js
, make sure alias has this in it. - the
/dist
folder is what is actually used, so you need tonpm run build
to reflect changes made
alias: {
react: path.resolve("./node_modules/react"),
otherwise the two separate versions of react will confuse each other. Meaning hooks don't work at all (https://github.com/facebook/react/issues/13991)