UNPKG

3.28 kBJSONView Raw
1{
2 "name": "react-swipeable",
3 "version": "6.2.0",
4 "description": "React Swipe event handler hook",
5 "main": "./dist/react-swipeable.js",
6 "browser": "./dist/react-swipeable.umd.js",
7 "umd:main": "./dist/react-swipeable.umd.js",
8 "esmodule": "./dist/react-swipeable.modern.js",
9 "module": "./dist/react-swipeable.module.js",
10 "jsnext:main": "./dist/react-swipeable.module.js",
11 "source": "./src/index.ts",
12 "types": "./dist/index.d.ts",
13 "typings": "./dist/index.d.ts",
14 "sideEffects": false,
15 "scripts": {
16 "build": "microbundle --no-compress --name swipeable --output dist",
17 "build:examples": "cd ./examples && yarn && yarn build",
18 "build:publish:examples": "yarn run build:examples && rimraf examples/node_modules && gh-pages -d examples",
19 "check:ci": "yarn run prettier && yarn run lint && yarn run test:unit",
20 "clean": "rimraf dist",
21 "prettier": "prettier --check src __tests__",
22 "format": "prettier --write src __tests__",
23 "lint": "eslint . --ext .ts,.tsx",
24 "prebuild": "yarn run clean",
25 "prepare": "yarn run build",
26 "pretest": "yarn run prettier && yarn run lint",
27 "preversion": "yarn test",
28 "size": "size-limit",
29 "start:examples": "cd ./examples && yarn && yarn start",
30 "test": "yarn run test:unit && yarn run build && yarn run size",
31 "test:unit": "jest",
32 "test:unit:watch": "jest --watch",
33 "test:cover": "jest --coverage"
34 },
35 "size-limit": [
36 {
37 "limit": "1.4 KB",
38 "path": "dist/react-swipeable.js"
39 }
40 ],
41 "jest": {
42 "preset": "ts-jest",
43 "testMatch": [
44 "<rootDir>/__tests__/**/*.(test|spec).ts?(x)"
45 ]
46 },
47 "keywords": [
48 "react swipe",
49 "react touch",
50 "react hook",
51 "touch",
52 "swipe",
53 "swipeable",
54 "react",
55 "hook"
56 ],
57 "authors": [
58 "Josh Perez <josh@goatslacker.com> (https://github.com/goatslacker)",
59 "Brian Emil Hartz <brianhartz@gmail.com> (https://github.com/hartzis)"
60 ],
61 "repository": {
62 "type": "git",
63 "url": "https://github.com/FormidableLabs/react-swipeable.git"
64 },
65 "bugs": {
66 "url": "https://github.com/FormidableLabs/react-swipeable/issues"
67 },
68 "homepage": "https://github.com/FormidableLabs/react-swipeable",
69 "files": [
70 "dist",
71 "src"
72 ],
73 "license": "MIT",
74 "devDependencies": {
75 "@size-limit/preset-small-lib": "^4.6.0",
76 "@testing-library/react": "^10.4.3",
77 "@types/jest": "^26.0.20",
78 "@types/react": "^16.8.12",
79 "@types/react-dom": "^16.9.8",
80 "@typescript-eslint/eslint-plugin": "^4.14.0",
81 "@typescript-eslint/parser": "^4.14.0",
82 "coveralls": "^3.0.3",
83 "eslint": "^7.18.0",
84 "eslint-config-prettier": "^6.11.0",
85 "eslint-plugin-react": "^7.20.3",
86 "eslint-plugin-react-hooks": "^4.0.5",
87 "gh-pages": "^3.0.0",
88 "jest": "^26.1.0",
89 "microbundle": "^0.13.3",
90 "prettier": "^2.0.5",
91 "react": "^17.0.1",
92 "react-dom": "^17.0.1",
93 "rimraf": "^3.0.2",
94 "rollup": "^1.1.2",
95 "rollup-plugin-babel": "^4.3.2",
96 "size-limit": "^4.6.0",
97 "ts-jest": "^26.4.4",
98 "ts-loader": "^8.0.1",
99 "typescript": "^4.1.3",
100 "webpack": "^4.29.0",
101 "webpack-cli": "^3.2.1",
102 "webpack-dev-server": "^3.1.14"
103 },
104 "dependencies": {},
105 "peerDependencies": {
106 "react": "^16.8.3 || ^17"
107 }
108}