Skip to content

Commit e95ee66

Browse files
committed
Add bower.json
1 parent 1792596 commit e95ee66

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ See [the demo source](https://github.com/CookPete/react-player/blob/master/src/d
3434

3535
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`
3636

37+
#### Bower
38+
39+
```bash
40+
bower install react-player --save
41+
```
42+
43+
```html
44+
<script src='bower_components/react/react.js'></script>
45+
<script src='bower_components/react/react-dom.js'></script>
46+
<script src='bower_components/react-player/dist/ReactPlayer.js'></script>
47+
<script>
48+
ReactDOM.render(
49+
<ReactPlayer url='https://www.youtube.com/watch?v=d46Azg3Pm4c' playing />,
50+
document.getElementById('container')
51+
)
52+
</script>
53+
```
54+
3755
### Demo
3856

3957
See a [live demo](http://cookpete.com/react-player), or run:

bower.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "react-player",
3+
"description": "A react component for playing a variety of URLs, including file paths, YouTube, SoundCloud and Vimeo",
4+
"main": "dist/ReactPlayer.js",
5+
"authors": [
6+
"Pete Cook <pete@cookpete.com> (http://github.com/cookpete)"
7+
],
8+
"license": "CC0-1.0",
9+
"keywords": [
10+
"react",
11+
"media",
12+
"player",
13+
"video",
14+
"audio",
15+
"youtube",
16+
"soundcloud",
17+
"vimeo",
18+
"react-component"
19+
],
20+
"homepage": "https://github.com/CookPete/react-player",
21+
"moduleType": [
22+
"globals"
23+
],
24+
"ignore": [
25+
"**/.*",
26+
"node_modules",
27+
"test",
28+
"src",
29+
"lib",
30+
"server.js",
31+
"index.html",
32+
"webpack.config.*.js"
33+
],
34+
"dependencies": {
35+
"react": "^0.14.7"
36+
}
37+
}

0 commit comments

Comments
 (0)