UNPKG

react-player

Version:

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion

160 lines (159 loc) 4.91 kB
{ "name": "react-player", "version": "2.13.0", "description": "A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion", "main": "lib/index.js", "typings": "lib/index.d.ts", "scripts": { "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 && node scripts/standalone-es6.js", "build:es6": "rsync --exclude demo -r ./src/ ./es6/ && find ./es6/ -name '*.js' -exec grep -q 'import React' {} \\; -exec mv {} {}x \\;", "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 && npm run build:es6 && node scripts/pre-publish.js && cp -r types/* .", "postpublish": "node scripts/post-publish.js && npm run clean" }, "repository": { "type": "git", "url": "https://github.com/CookPete/react-player.git" }, "keywords": [ "react", "media", "player", "video", "audio", "youtube", "facebook", "twitch", "soundcloud", "streamable", "vimeo", "wistia", "dailymotion", "hls", "dash", "react-component" ], "author": "Pete Cook (https://github.com/cookpete)", "license": "MIT", "bugs": { "url": "https://github.com/CookPete/react-player/issues" }, "homepage": "https://github.com/CookPete/react-player", "peerDependencies": { "react": ">=16.6.0" }, "devDependencies": { "@ava/babel": "^1.0.1", "@babel/cli": "^7.8.4", "@babel/core": "^7.9.0", "@babel/plugin-proposal-class-properties": "^7.5.5", "@babel/polyfill": "^7.8.7", "@babel/preset-env": "^7.9.5", "@babel/preset-react": "^7.9.4", "@babel/register": "^7.9.0", "@hot-loader/react-dom": "^16.13.0", "@types/node": "^14.0.24", "@types/react": "^17.0.0", "auto-changelog": "^2.0.0", "autoprefixer": "^9.7.6", "ava": "^3.6.0", "babel-eslint": "^10.1.0", "babel-loader": "^8.1.0", "babel-plugin-istanbul": "^6.0.0", "codecov": "^3.6.5", "cross-env": "^7.0.2", "css-loader": "^3.5.2", "enzyme": "^3.10.0", "enzyme-adapter-react-16": "^1.14.0", "file-loader": "^6.0.0", "html-webpack-plugin": "^4.2.0", "mini-css-extract-plugin": "^0.9.0", "nyc": "^15.0.1", "optimize-css-assets-webpack-plugin": "^5.0.3", "postcss-advanced-variables": "^3.0.1", "postcss-loader": "^3.0.0", "postcss-nested": "^4.1.2", "react": "^16.13.1", "react-dom": "^16.13.1", "react-hot-loader": "^4.12.20", "rimraf": "^3.0.2", "sanitize.css": "^11.0.0", "screenfull": "^5.0.2", "sinon": "^9.0.2", "snazzy": "^8.0.0", "standard": "^14.3.3", "style-loader": "^1.0.0", "ts-standard": "^9.0.0", "typescript": "^4.1.2", "webpack": "^4.42.1", "webpack-cli": "^3.3.11", "webpack-dev-server": "^3.10.3" }, "dependencies": { "deepmerge": "^4.0.0", "load-script": "^1.0.0", "memoize-one": "^5.1.1", "prop-types": "^15.7.2", "react-fast-compare": "^3.0.1" }, "postcss": { "plugins": { "autoprefixer": {}, "postcss-advanced-variables": {}, "postcss-nested": {} } }, "standard": { "parser": "babel-eslint", "ignore": [ "/dist/*" ] }, "ava": { "files": [ "test/**/*", "!test/helpers" ], "require": [ "@babel/register", "@babel/polyfill" ], "babel": { "compileAsTests": [ "test/helpers/*" ] } }, "nyc": { "all": true, "include": "src", "sourceMap": false, "instrument": false, "report-dir": "./coverage", "temp-directory": "./coverage/.nyc_output", "reporter": [ "text", "html" ] }, "auto-changelog": { "breakingPattern": "Breaking changes:" }, "sideEffects": [ "./src/standalone.js" ] }