payment-gateway-frontend-lib
v0.1.2
Published
Template and quick-starter to create modern React libraries using Rollup.
Downloads
223
Maintainers
Readme
Payment gateway component lib
Development:
- Storybook:
Storybook gives you an easy way to see and use your components while working on them in your library project, without having to build an unnecessary testing page just to display them.
npm run storybook # runs the host Storybook application locally for quick and easy testing
Now, anytime you make a change to your library or the stories, the storybook will live-reload your local dev server so you can iterate on your component in real-time.
Scripts:
npm run build
: builds the library todist
npm run lint
: runs eslint.npm run storybook
: runs the host Storybook application locally for quick and easy testing
Publishing to npm:
publish to GitHub Packages registry:
- you need to have this in your ~/.npmrc
registry=https://registry.npmjs.org/
@YOUR_GITHUB_USERNAME:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_AUTH_TOKEN
and run:
npm publish