Skip to content

Commit

Permalink
Add bower.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Feb 29, 2016
1 parent 1792596 commit e95ee66
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ See [the demo source](https://github.com/CookPete/react-player/blob/master/src/d

For platforms like [Meteor](https://www.meteor.com) without direct use of `npm` modules, a minified version of `ReactPlayer` is located in `dist` after installing. To generate this file yourself, checkout the repo and run `npm run build:browser`

#### Bower

```bash
bower install react-player --save
```

```html
<script src='bower_components/react/react.js'></script>
<script src='bower_components/react/react-dom.js'></script>
<script src='bower_components/react-player/dist/ReactPlayer.js'></script>
<script>
ReactDOM.render(
<ReactPlayer url='https://www.youtube.com/watch?v=d46Azg3Pm4c' playing />,
document.getElementById('container')
)
</script>
```

### Demo

See a [live demo](http://cookpete.com/react-player), or run:
Expand Down
37 changes: 37 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "react-player",
"description": "A react component for playing a variety of URLs, including file paths, YouTube, SoundCloud and Vimeo",
"main": "dist/ReactPlayer.js",
"authors": [
"Pete Cook <pete@cookpete.com> (http://github.com/cookpete)"
],
"license": "CC0-1.0",
"keywords": [
"react",
"media",
"player",
"video",
"audio",
"youtube",
"soundcloud",
"vimeo",
"react-component"
],
"homepage": "https://github.com/CookPete/react-player",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"test",
"src",
"lib",
"server.js",
"index.html",
"webpack.config.*.js"
],
"dependencies": {
"react": "^0.14.7"
}
}

0 comments on commit e95ee66

Please sign in to comment.