UNPKG

react-swipeable

Version:
107 lines (106 loc) 2.99 kB
{ "name": "react-swipeable", "version": "5.2.2", "description": "Swipe event handler & hook for react", "main": "./lib/index.js", "module": "es/index.js", "scripts": { "build": "rollup -c", "build:examples": "cd ./examples && npm install && npm run build", "build:publish:examples": "npm run build:examples && rimraf examples/node_modules && gh-pages -d examples", "clean": "rimraf lib es", "format": "prettier --write '{src,__{tests,mocks}__}/**/*.js'", "lint": "eslint .", "prebuild": "npm run clean", "prepare": "npm run build", "pretest": "npm run lint", "size": "size-limit", "start:examples": "cd ./examples && npm install && npm run start:dev", "test": "npm run test:unit && npm run dtslint && npm run build && npm run size", "test:unit": "jest", "test:cover": "jest --coverage", "dtslint": "dtslint types" }, "size-limit": [ { "limit": "1.875 KB", "path": "es/index.js" } ], "jest": { "testPathIgnorePatterns": [ "/node_modules/", "/__tests__/helpers/" ] }, "keywords": [ "react swipe", "react touch", "react hook", "touch", "swipe", "swipeable", "react", "hook", "react-component" ], "authors": [ "Josh Perez <josh@goatslacker.com> (https://github.com/goatslacker)", "Brian Emil Hartz <brianhartz@gmail.com> (https://github.com/hartzis)" ], "repository": { "type": "git", "url": "http://github.com/dogfessional/react-swipeable.git" }, "bugs": { "url": "https://github.com/dogfessional/react-swipeable/issues" }, "homepage": "https://github.com/dogfessional/react-swipeable", "files": [ "lib", "es", "src", "types/index.d.ts" ], "license": "MIT", "types": "types", "devDependencies": { "@babel/cli": "^7.2.0", "@babel/core": "^7.2.0", "@babel/plugin-proposal-class-properties": "^7.2.0", "@babel/plugin-proposal-object-rest-spread": "^7.2.0", "@babel/plugin-transform-runtime": "^7.2.0", "@babel/preset-env": "^7.2.0", "@babel/preset-react": "^7.0.0", "@babel/runtime": "^7.1.2", "@types/react": "^16.8.12", "babel-core": "7.0.0-bridge.0", "babel-eslint": "^10.0.1", "babel-jest": "^23.6.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.19", "coveralls": "^3.0.3", "dtslint": "^0.6.0", "enzyme": "^3.9.0", "enzyme-adapter-react-16": "^1.12.1", "eslint": "^5.9.0", "eslint-config-prettier": "^3.3.0", "eslint-plugin-import": "^2.14.0", "eslint-plugin-prettier": "^3.0.0", "eslint-plugin-react": "^7.11.1", "gh-pages": "^1.0.0", "jest": "^23.6.0", "prettier": "1.15.3", "react": "^16.8.0", "react-dom": "^16.8.0", "rimraf": "^2.6.1", "rollup": "^1.1.2", "rollup-plugin-babel": "^4.3.2", "size-limit": "^0.21.1" }, "dependencies": { "prop-types": "^15.6.2" }, "peerDependencies": { "react": "^16.0.0-0" } }