react-player

v3.0.0-canary.2
A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
react media player video audio youtube facebook twitch soundcloud and 8 more...

clean

rimraf dist demo coverage

start

cp -r examples/react/public/ demo & npm run build:esm:main --watch=forever & builder examples/react/src/index.js --format=iife --bundle --outdir=demo --watch --servedir=demo --livereload

lint

standard --verbose | snazzy

lint:fix

standard --fix

lint:ts

ts-standard --verbose types/*.d.ts | snazzy

lint:ts:fix

ts-standard --fix types/*.d.ts

test

tester test/*.js test/*/*.js --outdir=disttest --platform=node --format=esm --bundle --external:sinon --external:zora --target=esnext --sourcemap=inline

test:coverage

c8 --src src --exclude 'test/**' --exclude 'node_modules/**' --exclude 'scripts/**' --exclude-after-remap npm test

test:codecov

npm run test:coverage && c8 report --reporter json && codecov -f coverage/coverage-final.json

build:demo

cp -r examples/react/public demo && npm run build:esm:main && builder examples/react/src/index.js --format=iife --bundle --outdir=demo --minify --sourcemap

build

run-s build:esm:*

build:esm:main

builder src/*.js src/players/*.js --outdir=dist --format=esm

build:esm:lazy

builder src/*.js src/players/*.js --outdir=dist/lazy --format=esm

build:esm:single

node scripts/pre-publish.js

preversion

npm run lint && npm run test

version

auto-changelog -p && git add CHANGELOG.md

prepublishOnly

npm run build && cp -r types/* dist

postpublish

npm run clean

Metadata

  • MIT
  • Whatever
  • Pete Cook
  • released 4/20/2024

Downloads

Maintainers