cw-components
v2.42.0-rc4.Angel
Published
CoverWallet components
Downloads
226
Readme
cw-components
CoverWallet components
Package usage
Node version is >= 10.15.0
To start local server
yarn start
- Open http://localhost:8002/basic/ in your browser
To build lib
yarn build
To make cw-components local changes instantly work on your project:
cd path-to-local/cw-components
yarn link
yarn build-watch
cd path-to-other-project/project-name
yarn link cw-components
To use actual package.json cw-components lib version instead of npm link just do:
cd path-to-other-project/project-name
yarn unlink cw-components
Next time, for example after pc reboot you will need only to:
cd path-to-local/cw-components
yarn build-watch
To push your changes to Github pages
This still have some bug with fonts on coverwallet.github.io
- Run
yarn gh-pages
- Open http://coverwallet.github.io/cw-components/basic/
To publish new version to npm
- Run
npm version <update_type>
as explained here https://docs.npmjs.com/getting-started/publishing-npm-packages#how-to-update-the-version-number - Create a user at www.npmjs.com, if you haven't yet (or you can request access to cowerwallet's account)
- Make
npm login
- Ask to add you to collaborators for https://www.npmjs.com/package/cw-components
- Create a release version at github
- Run
npm publish
To test in a mobile device
- Run
yarn start
- In another tab, run
yarn sync
- In your mobile browser, enter the
External URL
printed in the terminal