UNPKG

@lottiefiles/react-lottie-player

Version:
141 lines (140 loc) 5.05 kB
{ "name": "@lottiefiles/react-lottie-player", "version": "3.6.0", "description": "Lottie web player wrapper for React", "main": "dist/lottie-react.js", "module": "dist/lottie-react.esm.js", "types": "dist/src/index.d.ts", "files": [ "dist", "src" ], "devDependencies": { "@babel/core": "^7.9.6", "@babel/preset-env": "^7.16.11", "@changesets/cli": "^2.21.1", "@commitlint/cli": "^12.1.1", "@commitlint/config-conventional": "^12.1.1", "@cypress/code-coverage": "^3.9.12", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-commonjs": "^11.1.0", "@rollup/plugin-node-resolve": "^7.1.3", "@rollup/plugin-strip": "^1.3.2", "@rollup/plugin-typescript": "^8.1.0", "@semantic-release/changelog": "^5.0.1", "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/git": "^9.0.0", "@semantic-release/github": "^7.2.1", "@semantic-release/npm": "^7.1.1", "@semantic-release/release-notes-generator": "^9.0.2", "@storybook/addon-actions": "^5.3.18", "@storybook/addon-console": "^1.2.2", "@storybook/addon-links": "^5.3.18", "@storybook/addons": "^5.3.18", "@storybook/preset-create-react-app": "^3.0.0", "@storybook/preset-typescript": "^3.0.0", "@storybook/react": "^5.3.18", "@types/jest": "^25.2.3", "@types/react": "^18.0.9", "@types/styled-components": "^5.1.0", "@typescript-eslint/eslint-plugin": "^2.24.0", "@typescript-eslint/parser": "^2.24.0", "babel-loader": "^8.1.0", "babel-plugin-istanbul": "^6.1.1", "cross-env": "^7.0.3", "css-loader": "^3.5.3", "csstype": "^2.6.10", "cypress": "^9.5.1", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.0", "eslint-loader": "^3.0.3", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-prettier": "^3.1.2", "eslint-plugin-react": "^7.19.0", "eslint-plugin-react-hooks": "^3.0.0", "eslint-plugin-simple-import-sort": "^5.0.2", "husky": ">=4", "jest": "^26.0.1", "lint-staged": ">=10", "prettier": "^1.19.1", "react": "^19.0.0", "react-docgen-typescript-loader": "^3.7.2", "react-dom": "^19.0.0", "react-scripts": "^3.4.1", "rollup": "^2.9.1", "rollup-plugin-filesize": "^9.0.0", "rollup-plugin-peer-deps-external": "^2.2.2", "rollup-plugin-postcss": "^3.1.1", "rollup-plugin-terser": "^5.3.0", "rollup-plugin-typescript2": "^0.27.0", "semantic-release": "^17.4.2", "source-map-support": "^0.5.21", "style-loader": "^1.2.1", "ts-jest": "^26.0.0", "ts-loader": "^7.0.4", "ts-node": "^10.7.0", "typescript": "^3.5.3", "typings-for-css-modules-loader": "^1.7.0", "webpack": "^4.43.0" }, "peerDependencies": { "react": "16 - 19" }, "dependencies": { "lottie-web": "^5.12.2" }, "scripts": { "predev": "node -p \"'export const REACT_LOTTIE_PLAYER_VERSION = ' + JSON.stringify(require('./package.json').version) + '; \\n' + 'export const LOTTIE_WEB_VERSION = ' + JSON.stringify(require('./package.json').dependencies['lottie-web']) + ';'\" > src/versions.ts", "dev": "rollup -c -w", "prebuild": "node -p \"'export const REACT_LOTTIE_PLAYER_VERSION = ' + JSON.stringify(require('./package.json').version) + '; \\n' + 'export const LOTTIE_WEB_VERSION = ' + JSON.stringify(require('./package.json').dependencies['lottie-web']) + ';'\" > src/versions.ts", "build": "rollup -c", "prepublishOnly": "yarn build", "run-tests": "while ! nc -z localhost 8080 ; do sleep 1 ; done && yarn run start-cypress && npx nyc report --reporter=text-summary", "postrun-tests": "kill $(lsof -t -i:8080)", "start-and-run-tests": "cross-env NODE_ENV=test yarn run build && yarn run serve-app && yarn run-tests", "serve-app": "cd ./cypress/react-testing-pages && yarn && yarn run start &", "start-cypress": "yarn run cypress run", "lint": "tsc --noEmit && eslint . --ext .ts,.tsx,.js", "lint:fix": "eslint . --ext .ts,.tsx,.js --fix", "storybook": "start-storybook -p 9009", "build-storybook": "build-storybook", "version": "yarn changeset version" }, "repository": { "type": "git", "url": "git+ssh://git@github.com/LottieFiles/lottie-react.git" }, "keywords": [ "lottie", "lottiefiles", "react" ], "author": "Jawish Hameed <jawish@lottiefiles.com>", "contributors": [ "Karam Ali <karam@lottiefiles.com>" ], "license": "MIT", "bugs": { "url": "https://github.com/LottieFiles/lottie-react/issues" }, "homepage": "https://github.com/LottieFiles/lottie-react#readme", "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-commit": "lint-staged" } }, "lint-staged": { "src/**/*.{css,scss,md}": [ "prettier --write" ], "src/**/*.{js,jsx,ts,tsx,json}": [ "eslint . --ext .ts,.tsx,.js --fix" ] }, "nyc": { "extends": "@istanbuljs/nyc-config-typescript", "all": true } }