hls.js

v1.5.17
JavaScript HLS client using MediaSourceExtension

build

rollup --config && npm run build:types

build:ci

rollup --config && tsc --build tsconfig-lib.json && api-extractor run && es-check

build:debug

rollup --config --configType full --configType demo

build:watch

rollup --config --configType full --configType demo --watch

build:types

tsc --build tsconfig-lib.json && api-extractor run --local

dev

run-p build:watch serve

serve

http-server -o /demo .

docs

doctoc ./docs/API.md && api-documenter markdown -i api-extractor -o api-extractor/api-documenter && rm api-extractor/api-documenter/index.md && npm run docs-md-to-html

docs-md-to-html

generate-md --layout github --input api-extractor/api-documenter --output api-docs

lint

eslint --cache src/ tests/ --ext .js --ext .ts

lint:fix

npm run lint -- --fix

lint:quiet

npm run lint -- --quiet

lint:staged

lint-staged

prettier

prettier --cache --write .

prettier:verify

prettier --cache --check .

pretest

npm run lint

sanity-check

npm run lint && npm run prettier:verify && npm run type-check && npm run build && es-check && npm run docs && npm run test:unit

start

npm run dev

test

npm run test:unit && npm run test:func

test:unit

karma start karma.conf.js

test:unit:debug

DEBUG_UNIT_TESTS=1 karma start karma.conf.js --auto-watch --no-single-run --browsers Chrome

test:unit:watch

karma start karma.conf.js --auto-watch --no-single-run

test:func

BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit

test:func:light

BABEL_ENV=development HLSJS_LIGHT=1 mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit

test:func:sauce

SAUCE=1 UA=safari OS='OS X 10.15' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit

type-check

tsc --noEmit

type-check:watch

npm run type-check -- --watch

prepare

husky install
npm i hls.js

Metadata

Downloads