react-player

v2.8.1
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 lib lazy demo coverage *.d.ts

start

webpack-dev-server --config webpack/config.babel.js

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

cross-env NODE_ENV=test ava

test:coverage

cross-env NODE_ENV=test nyc ava

test:codecov

nyc report --reporter=json && codecov -f coverage/coverage-final.json

build:lib

cross-env NODE_ENV=production babel src -d lib --ignore src/demo

build:lazy

cross-env NODE_ENV=production LAZY=true babel src -d lazy --ignore src/demo

build:demo

cross-env NODE_ENV=production webpack --config webpack/production.babel.js

build:dist

cross-env NODE_ENV=production webpack --config webpack/dist.babel.js

build:standalone

cross-env NODE_ENV=production webpack --config webpack/standalone.babel.js

preversion

npm run lint && npm run test

version

auto-changelog -p && npm run build:dist && npm run build:standalone && git add CHANGELOG.md dist

prepublishOnly

npm run build:lib && npm run build:lazy && npm run build:dist && node scripts/pre-publish.js && cp types/*.d.ts . && cp types/index.d.ts lazy

postpublish

node scripts/post-publish.js && npm run clean

Metadata

  • MIT
  • Whatever
  • Pete Cook
  • released 1/20/2021

Downloads

Maintainers