@wethegit/react-autoplay-video
Version:
Viewport-aware auto-playing video component for use in React projects.
88 lines (87 loc) • 2.52 kB
JSON
{
"name": "@wethegit/react-autoplay-video",
"version": "1.0.4",
"description": "Viewport-aware auto-playing video component for use in React projects.",
"files": [
"dist"
],
"style": "dist/style.css",
"css": "dist/style.css",
"type": "module",
"main": "./dist/react-autoplay-video.umd.cjs",
"module": "./dist/react-autoplay-video.js",
"exports": {
".": {
"import": "./dist/react-autoplay-video.js",
"require": "./dist/react-autoplay-video.umd.cjs"
},
"./style.css": "./dist/style.css"
},
"scripts": {
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"",
"start": "vite",
"build": "npm run lint:scripts && npm run lint:styles && vite build",
"lint:scripts": "eslint --fix --ext .jsx,js --ignore-path .gitignore .",
"lint:styles": "stylelint src/**/*.{css,scss}"
},
"publishConfig": {
"access": "public"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx}": "eslint --fix",
"*.{css,scss}": "stylelint --fix",
"*": "prettier -w -u"
},
"keywords": [
"react",
"video",
"autoplay",
"viewport"
],
"homepage": "https://github.com/wethegit/react-autoplay-video",
"repository": {
"type": "git",
"url": "https://github.com/wethegit/react-autoplay-video"
},
"bugs": {
"url": "https://github.com/wethegit/react-autoplay-video/issues"
},
"author": "Andrew Rubin <andrew@wethecollective.com> (https://wethecollective.com)",
"license": "MIT",
"devDependencies": {
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react-swc": "^3.0.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "~8.3.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"stylelint": "^15.6.2",
"stylelint-config-recommended": "^12.0.0",
"stylelint-config-standard": "^33.0.0",
"stylelint-config-standard-scss": "^9.0.0",
"stylelint-order": "^6.0.3",
"stylelint-selector-bem-pattern": "^2.1.1",
"vite": "^4.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"peerDependencies": {
"react": "17 - 18",
"react-dom": "17 - 18"
},
"dependencies": {
"@wethegit/react-hooks": "~2.0.0",
"prop-types": "~15.8.1"
}
}