Skip to content

Commit

Permalink
docs: add supported browsers to README (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilty authored Sep 24, 2024
1 parent 9489424 commit 971b0e8
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,56 +19,64 @@ The applause button is a custom element that can be added directly to the page.
</head>
<body>
<!-- add the button! -->
<applause-button style="width: 58px; height: 58px;"/>
<applause-button style="width: 4rem" />
</body>
```

The above will render an applause button, persisting claps and clap counts.

For more information, visit the [project website](https://colineberhardt.github.io/applause-button/);

## Browser Support

All browsers with
[partial support of Custom Elements](https://caniuse.com/custom-elementsv1); check current state at
[Browserslist](https://browsersl.ist/#q=partially+supports+custom-elementsv1).

## Development

![Node LTS](https://img.shields.io/node/v-lts/applause-button?logo=nodedotjs)

Clone this repo and install dependencies via yarn:
Clone this repo then install dependencies via yarn:

~~~
$ yarn
~~~
```shell
yarn
```

Use `yarn test` to run the test suite. These use Jest as the test runner, and Puppeteer as a headless Chrome instance,
allowing the applause button to make API requests (with appropriate responses faked within the test code).

You can build project and start watching the `src` folder for changes as follows:
You can build the code and start watching the `src` folder for changes as follows:

~~~
$ yarn run watch
~~~
```shell
yarn watch
```

Run `yarn test:server` to start a dev server in another process.
Then run the following command in another terminal, to serve a test page containing an applause-button:

```shell
yarn test:serve
```

Navigate to http://localhost:8081 to view the test page; remember to refresh the page after code changes.

### Releases

All releases are created automatically via
[semantic release](https://github.com/semantic-release/semantic-release)
running on Travis.


## Contributors

This project exists thanks to all the people who contribute.
<a href="https://github.com/ColinEberhardt/applause-button/graphs/contributors"><img src="https://opencollective.com/applause-button/contributors.svg?width=890&button=false" /></a>


## Backers

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/applause-button#backer)]

<a href="https://opencollective.com/applause-button#backers" target="_blank"><img src="https://opencollective.com/applause-button/backers.svg?width=890"></a>


## Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Expand Down

0 comments on commit 971b0e8

Please sign in to comment.