Skip to content

Commit

Permalink
add support for bower/npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Feb 5, 2015
1 parent 93433ca commit 91896ec
Show file tree
Hide file tree
Showing 7 changed files with 310 additions and 8 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules/*
bower_components/*
24 changes: 24 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"bitwise" : true,
"browser" : true,
"camelcase" : true,
"curly" : true,
"eqeqeq" : true,
"eqnull" : true,
"es5" : false,
"esnext" : true,
"immed" : true,
"indent" : 4,
"latedef" : true,
"newcap" : true,
"noarg" : true,
"node" : true,
"quotmark" : "single",
"regexp" : true,
"smarttabs" : true,
"strict" : false,
"trailing" : true,
"undef" : true,
"unused" : true,
"white" : true
}
18 changes: 18 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "mse-hls",
"version": "0.0.1",
"description": "Media Source Extension - HLS library, by/for Dailymotion",
"homepage": "https://github.com/dailymotion/mse-hls",
"authors": [
"Guillaume du Pontavice <[email protected]>"
],
"main": "dist/hls.js",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
16 changes: 8 additions & 8 deletions mse-demo.html → demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ <h1 class="title">HLS Media Sources Demo</h1>
<footer class="wrapper">
</footer>
</div>
<script src="src/hls.js"></script>
<script src="src/utils/log.js"></script>
<script src="src/utils/stream.js"></script>
<script src="src/loader/playlist-loader.js"></script>
<script src="src/loader/fragment-loader.js"></script>
<script src="src/remux/mp4-generator.js"></script>
<script src="src/demux/exp-golomb.js"></script>
<script src="src/demux/tsdemuxer.js"></script>
<script src="../src/hls.js"></script>
<script src="../src/utils/log.js"></script>
<script src="../src/utils/stream.js"></script>
<script src="../src/loader/playlist-loader.js"></script>
<script src="../src/loader/fragment-loader.js"></script>
<script src="../src/remux/mp4-generator.js"></script>
<script src="../src/demux/exp-golomb.js"></script>
<script src="../src/demux/tsdemuxer.js"></script>
<!--<script src="test/mp4-inspector.js"></script> -->
<script>
var video = document.getElementById('video');
Expand Down
205 changes: 205 additions & 0 deletions dist/hls.js

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "mse-hls",
"version": "0.0.1",
"description": "Media Source Extension - HLS library, by/for Dailymotion",
"homepage": "https://github.com/dailymotion/mse-hls",
"authors": "Guillaume du Pontavice <[email protected]>",
"main": "src/hls.js",
"private": true,
"scripts": {
"clean": "rm -r dist/*",
"prebuild": "npm run clean & npm run test",
"build": "browserify -s hls src/hls.js -o dist/hls.js",
"postbuild": "npm run minify",
"minify": "uglifyjs dist/hls.js > dist/hls.min.js",
"watch": "watchify --debug -s hls src/hls.js -o dist/hls.js",
"pretest": "npm run lint",
"test": "mocha tests/",
"lint": "jshint src/*.js",
"serve": "http-server -p 8000 .",
"open": "opener http://localhost:8000/demo/",
"live-reload": "live-reload --port 8001 dist/",
"dev": "npm run open -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s'"
},
"browserify": {
"transform": [
"6to5ify"
]
},
"devDependencies": {
"6to5ify": "^3.1.2",
"browserify": "^8.1.1",
"http-server": "^0.7.4",
"jshint": "^2.5.11",
"live-reload": "^0.2.0",
"mocha": "^2.1.0",
"opener": "^1.4.0",
"parallelshell": "^1.0.3",
"uglify-js": "^2.4.16",
"watchify": "^2.2.1"
}
}

0 comments on commit 91896ec

Please sign in to comment.