UNPKG

payment-gateway-frontend-lib

Version:

Template and quick-starter to create modern React libraries using Rollup.

29 lines (24 loc) 1.03 kB
# 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. ```bash 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 to `dist` - `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 ```bash registry=https://registry.npmjs.org/ @YOUR_GITHUB_USERNAME:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=YOUR_AUTH_TOKEN ``` and run: ```bash npm publish ```