0.0.12 • Published 10 months ago

swap-libs-sdk-v2 v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Swap SDK

code style: prettier npm version

Running tests

To run the tests, follow these steps. You must have at least node v10 and yarn installed.

First clone the repository:

git clone https://github.com/Fyfe0203/swap-libs-sdk-v2

Move into the swap-libs-sdk-v2 working directory

cd swap-libs-sdk-v2/

Install dependencies

yarn install

Run tests

yarn test

You should see output like the following:

yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.

https://blog.csdn.net/qq_36040161/article/details/79709140 https://blog.csdn.net/zhangjing1019/article/details/102896421

利用命令 npm login 本地登录账号,会提示你输入账号密码邮箱; 利用命令 npm publish 进行包发布,记得每次发布时,修改版本号;