dexpools-sdk
v1.0.541
Published
shared constants, utils
Downloads
60
Readme
dexpools-sdk
npm init
- creates new package
Link on npm package (shared constants, utils, etc): https://www.npmjs.com/package/dexpools-sdk
To become a Collaborator of this package do the following:
- Create an npm account: https://www.npmjs.com/
- Login to your npm account in terminal
npm adduser
- Ask one of the collaborators to add you to the list of npm package collaborators. Add another user to collaborators (works for existing collaborators of the package):
npm owner add [npm account username]
To work with package in real time, without republishing after any updates, do the following:
- Create a link to the package
yarn link
- in the application where we will use the sdk (links to your local dexpools-sdk):
yarn link dexpools-sdk
- Compile sdk after any changes, watch changes
yarn start
- ...add code
- run prettier:
yarn lint-prettier
- Make build, if the build was successful, go to the next
yarn build
- Publish a new version of the package to npm
yarn publish
- commit, push changes to main
- in the application unlink form local sdk, re-install the package that was linked, update sdk version:
yarn unlink dexpools-sdk
yarn install --force
yarn add dexpools-sdk
npm unpublish <package-name>@<version> // Remove specific version