UNPKG

react-h5-audio-player

Version:

A customizable React audio player. Written in TypeScript. Mobile compatible. Keyboard friendly

113 lines (112 loc) 3.29 kB
{ "name": "react-h5-audio-player", "version": "3.6.1", "description": "A customizable React audio player. Written in TypeScript. Mobile compatible. Keyboard friendly", "main": "./lib/index.js", "module": "./es/index.js", "types": "./lib/index.d.ts", "scripts": { "build": "run-p build:cjs build:d.ts build:es build:umd build:css build:less", "build:cjs": "cross-env NODE_ENV=cjs babel src --out-dir lib --extensions .tsx,.ts", "build:es": "cross-env NODE_ENV=es babel src --out-dir es --extensions .tsx,.ts", "build:umd": "webpack", "build:d.ts": "tsc", "build:css": "sass --no-source-map src/styles.scss lib/styles.css", "build:less": "sass2less src/styles.scss lib/styles.less", "lint": "eslint src --fix --ext .ts,.tsx,.js", "test": "jest --env=jsdom", "cov": "jest --env=jsdom --coverage", "storybook": "start-storybook -p 9000", "build:storybook": "build-storybook -c .storybook -o react-h5-audio-player-storybook" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{ts,tsx,js}": [ "npm run lint" ] }, "jest": { "roots": [ "src" ], "setupFilesAfterEnv": [ "./jest-setup.js" ] }, "repository": { "type": "git", "url": "git+ssh://git@github.com/lhz516/react-h5-audio-player.git" }, "keywords": [ "react", "component", "music", "audio", "player", "mobile", "customizable", "typescript", "mse", "eme" ], "author": "Hanz Luo", "license": "MIT", "bugs": { "url": "https://github.com/lhz516/react-h5-audio-player/issues" }, "homepage": "https://github.com/lhz516/react-h5-audio-player#readme", "peerDependencies": { "react": "^16.3.0 || ^17.0.0", "react-dom": "^16.3.0 || ^17.0.0" }, "dependencies": { "@babel/runtime": "^7.10.2", "@iconify/icons-mdi": "^1.0.46", "@iconify/react": "^1.1.3" }, "devDependencies": { "@babel/cli": "^7.10.1", "@babel/core": "^7.10.2", "@babel/plugin-proposal-class-properties": "^7.10.1", "@babel/plugin-transform-runtime": "^7.10.1", "@babel/preset-env": "^7.10.2", "@babel/preset-react": "^7.10.1", "@babel/preset-typescript": "^7.10.1", "@storybook/addon-actions": "^6.1.14", "@storybook/addon-docs": "^6.1.14", "@storybook/react": "^6.1.14", "@types/events": "^3.0.0", "@typescript-eslint/eslint-plugin": "^3.3.0", "@typescript-eslint/parser": "^3.3.0", "babel-eslint": "^10.1.0", "babel-loader": "^8.1.0", "cross-env": "^7.0.2", "css-loader": "^3.6.0", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.2", "eslint": "^7.2.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.0", "husky": "^4.2.5", "jest": "^26.6.3", "less-plugin-sass2less": "^1.2.0", "lint-staged": "^10.2.10", "node-sass": "^4.14.1", "npm-run-all": "^4.1.5", "prettier": "^2.0.5", "react": "^16.13.1", "react-dom": "^16.13.1", "sass": "^1.26.8", "sass-loader": "^8.0.2", "static-server": "^2.2.1", "typescript": "^3.9.5", "webpack": "^4.43.0", "webpack-cli": "^3.3.11" } }