Our LedgyPricing
React component used in ledgy-app and ledgy.com repos.
npm install
One can run webpack dev sever which will open an instance on http://localhost:3001
with:
npm start
After making your changes, make sure there are no lint errors:
npm run lint
The LedgyPricing component accepts the following optional parameters (as of v1.5.0):
startupButton: Node,
scaleupButton: Node,
enterpriseButton: Node,
highlightScaleup: boolean = false,
highlightEnterprise: boolean = false,
highlightFeature: string = '',
After all changes are committed to master, remember to bump up the package.json
version and publish it to npm.
The helper utility npm run prepublish
will copy the transpiled code to the dist folder.
Finally, npm publish
will publish the package to our Ledgy npm account.
Last step is to update ledgy-app and ledgy.com to use the latest ledgy-pricing
version.