SIGN IN SIGN UP
cookpete / react-player UNCLAIMED

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion

0 0 0 TypeScript
2016-04-19 10:53:58 +01:00
# Contributing to ReactPlayer
Thanks for contributing to ReactPlayer!
2018-01-18 09:30:13 +00:00
Running the demo locally is relatively easy:
```bash
git clone https://github.com/CookPete/react-player.git
cd react-player
npm install # or yarn
npm start
open http://localhost:3000
```
2016-04-19 10:53:58 +01:00
## `dist` files
There is **no need** to build or commit files in `dist` after making changes. The `dist` files are only there for [bower](http://bower.io) support, and there is very little point in polluting every commit or pull request with the changes. The `dist` files will be automatically built and commmited when new versions are released, so your changes will be included then.
## Linting
This project uses [standard](https://github.com/feross/standard) code style. Be sure to lint the code after making changes and fix any issues that come up.
```bash
npm run lint
```
## Testing
This project uses [karma](https://karma-runner.github.io) with [mocha](https://github.com/mochajs/mocha) and [chai](https://github.com/chaijs/chai) for testing in the browser. Be sure to test `ReactPlayer` after making changes and, if youre feeling generous, add some tests of your own.
```bash
npm test
```