UNPKG

react-h5-audio-player

Version:

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

113 lines (112 loc) 3.42 kB
{ "name": "react-h5-audio-player", "version": "3.10.2", "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", "test": "jest", "test:watch": "jest --watch", "cov": "jest --coverage", "storybook": "storybook dev -p 9000", "build:storybook": "storybook build -c .storybook -o docs", "prepare": "husky" }, "lint-staged": { "*.{ts,tsx}": [ "yarn lint" ] }, "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://codepen.io/lhz516/pen/dyGpmgP", "peerDependencies": { "react": "^16.3.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "dependencies": { "@babel/runtime": "^7.10.2", "@iconify/react": "^5" }, "devDependencies": { "@babel/cli": "^7.10.1", "@babel/core": "^7.10.2", "@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", "@mdx-js/loader": "^3.1.0", "@storybook/addon-docs": "^9.0.0", "@storybook/addon-webpack5-compiler-babel": "^3.0.3", "@storybook/react-webpack5": "^9.0.0", "@testing-library/dom": "^10.0.0", "@testing-library/jest-dom": "^6.4.0", "@testing-library/react": "^16.0.0", "@testing-library/user-event": "^14.5.2", "@types/events": "^3.0.0", "@types/react": "^19", "@types/react-dom": "^19.1.7", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "babel-jest": "^29.7.0", "babel-loader": "^10.0.0", "cross-env": "^10", "css-loader": "^7", "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", "eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.35.0", "husky": "^9.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "less-plugin-sass2less": "^1.2.0", "lint-staged": "^15.2.0", "npm-run-all": "^4.1.5", "prettier": "^2.0.5", "react": "^19", "react-dom": "^19", "remark-gfm": "^4.0.0", "sass": "^1.26.8", "sass-loader": "^10.2.0", "semver": "^7.7.2", "static-server": "^2.2.1", "storybook": "^9.0.0", "style-loader": "^4.0.0", "typescript": "^5.4.0", "webpack": "^5", "webpack-cli": "^4" }, "engines": { "node": ">=18.0.0" }, "packageManager": "yarn@1.22.19" }