hls.js

v0.5.0
Media Source Extension - HLS library, by/for Dailymotion

dev

npm run build && npm run open -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s'

lint

jshint src/

open

opener http://localhost:8000/demo/

test

mocha --compilers js:babel-register --recursive tests/unit

babel

babel src --out-dir lib

build

npm run babel && browserify -t [babelify] -s Hls index.js --debug | exorcist dist/hls.js.map -b . > dist/hls.js

clean

find dist -mindepth 1 -delete

serve

http-server -p 8000 .

watch

watchify --debug -s Hls index.js -t [babelify] -o dist/hls.js

minify

uglifyjs dist/hls.js -c sequences=true,dead_code=true,conditionals=true,booleans=true,unused=true,if_return=true,join_vars=true,drop_console=true -m sort --screw-ie8 > dist/hls.min.js

pretest

npm run lint

prebuild

npm run clean & npm run test

postbuild

npm run minify

live-reload

live-reload --port 8001 dist/

Metadata

Downloads