2.3.0 • Published 2 years ago

@financial-times/spark-push-notification v2.3.0

Weekly downloads
68
License
ISC
Repository
github
Last release
2 years ago

spark-push-notification

This repo abstract away the code required for spark push notification so that functionality can be shared across the spark estate

This repo has a storybook. To run it locally you can run yarn workspace @financial-time/spark-push-notification storybook

How to use

yarn add @financial-times/spark-push-notification // with yarn
npm i @financial-times/spark-push-notification // with npm

and use it like:

import { PushButtonWithOverlay, PushButton } from @financial-times/spark-push-notification

<PushButtonWithOverlay articleId={articleStore.articleId}>
			<Button data-trackable="send-push">
				Send push
			</Button>
</PushButtonWithOverlay>

Development

This repo uses lerna under the hood for the publication flows. It also uses yarn workspaces to manage packages internally.

How to publish

  1. Make changes to the source
  2. Test changes in Spark - they'll be shown in your development site
  3. Increment the version number in package.json
  4. When a pull request containing your changes is merged, CircleCI will automatically publish your packages