UNPKG

react-swipeable

Version:
109 lines (108 loc) 3.29 kB
{ "name": "react-swipeable", "version": "6.2.2", "description": "React Swipe event handler hook", "main": "./dist/react-swipeable.js", "browser": "./dist/react-swipeable.umd.js", "umd:main": "./dist/react-swipeable.umd.js", "esmodule": "./dist/react-swipeable.modern.js", "module": "./dist/react-swipeable.module.js", "jsnext:main": "./dist/react-swipeable.module.js", "source": "./src/index.ts", "types": "./dist/index.d.ts", "typings": "./dist/index.d.ts", "sideEffects": false, "scripts": { "build": "microbundle --no-compress --name swipeable --output dist", "build:examples": "cd ./examples && yarn && yarn build", "build:publish:examples": "yarn run build:examples && rimraf examples/node_modules && gh-pages -d examples", "check:ci": "yarn run prettier && yarn run lint && yarn run test:unit", "clean": "rimraf dist", "prettier": "prettier --check src __tests__", "format": "prettier --write src __tests__", "lint": "eslint . --ext .ts,.tsx", "prebuild": "yarn run clean", "prepare": "yarn run build", "pretest": "yarn run prettier && yarn run lint", "preversion": "yarn test", "size": "size-limit", "start:examples": "cd ./examples && yarn && yarn start", "test": "yarn run test:unit && yarn run build && yarn run size", "test:unit": "jest", "test:unit:watch": "jest --watch", "test:cover": "jest --coverage" }, "size-limit": [ { "limit": "1.4 KB", "path": "dist/react-swipeable.js" } ], "jest": { "preset": "ts-jest", "testMatch": [ "<rootDir>/__tests__/**/*.(test|spec).ts?(x)" ] }, "keywords": [ "react swipe", "react touch", "react hook", "touch", "swipe", "swipeable", "react", "hook" ], "authors": [ "Josh Perez <josh@goatslacker.com> (https://github.com/goatslacker)", "Brian Emil Hartz <brianhartz@gmail.com> (https://github.com/hartzis)" ], "repository": { "type": "git", "url": "https://github.com/FormidableLabs/react-swipeable.git" }, "bugs": { "url": "https://github.com/FormidableLabs/react-swipeable/issues" }, "homepage": "https://github.com/FormidableLabs/react-swipeable", "files": [ "dist", "src" ], "license": "MIT", "devDependencies": { "@size-limit/preset-small-lib": "^4.6.0", "@testing-library/react": "^10.4.3", "@types/jest": "^26.0.20", "@types/react": "^16.8.12", "@types/react-dom": "^16.9.8", "@typescript-eslint/eslint-plugin": "^4.14.0", "@typescript-eslint/parser": "^4.14.0", "coveralls": "^3.0.3", "eslint": "^7.18.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-react": "^7.20.3", "eslint-plugin-react-hooks": "^4.0.5", "gh-pages": "^3.0.0", "jest": "^26.1.0", "microbundle": "^0.13.3", "prettier": "^2.0.5", "react": "^17.0.1", "react-dom": "^17.0.1", "rimraf": "^3.0.2", "rollup": "^1.1.2", "rollup-plugin-babel": "^4.3.2", "size-limit": "^4.6.0", "ts-jest": "^26.4.4", "ts-loader": "^8.0.1", "typescript": "^4.1.3", "webpack": "^4.29.0", "webpack-cli": "^3.2.1", "webpack-dev-server": "^3.1.14" }, "dependencies": {}, "peerDependencies": { "react": "^16.8.3 || ^17 || ^18" } }