|
3 | 3 | "version": "1.0.0-beta.1", |
4 | 4 | "description": "React wrapper around Popper.js", |
5 | 5 | "license": "MIT", |
6 | | - "author": "Travis Arnold <[email protected]> (http://souporserious.com)", |
| 6 | + "author": |
| 7 | + "Travis Arnold <[email protected]> (http://souporserious.com)", |
7 | 8 | "homepage": "https://github.com/souporserious/react-popper", |
8 | 9 | "main": "dist/react-popper.js", |
9 | 10 | "umd:main": "dist/react-popper.umd.js", |
10 | 11 | "module": "lib/index.js", |
11 | 12 | "typings": "typings/react-popper.d.ts", |
12 | | - "files": [ |
13 | | - "dist", |
14 | | - "lib", |
15 | | - "typings/react-popper.d.ts" |
16 | | - ], |
| 13 | + "files": ["dist", "lib", "typings/react-popper.d.ts"], |
17 | 14 | "scripts": { |
18 | | - "build": "npm run build:clean && npm run build:es && npm run build:umd && npm run build:cjs && npm run build:flow && npm run build:umd-min && npm run build:cjs-min", |
| 15 | + "build": |
| 16 | + "npm run build:clean && npm run build:es && npm run build:umd && npm run build:cjs && npm run build:flow && npm run build:umd-min && npm run build:cjs-min", |
19 | 17 | "build:clean": "rimraf dist/ && rimraf lib/", |
20 | 18 | "build:es": "babel src --ignore '*.test.js,__mocks__' --out-dir lib", |
21 | | - "build:umd": "rollup -c --output.format umd --output.name 'react-popper' --output.file dist/react-popper.umd.js", |
22 | | - "build:cjs": "rollup -c --output.format cjs --output.name 'react-popper' --output.file dist/react-popper.js", |
| 19 | + "build:umd": |
| 20 | + "rollup -c --output.format umd --output.name 'react-popper' --output.file dist/react-popper.umd.js", |
| 21 | + "build:cjs": |
| 22 | + "rollup -c --output.format cjs --output.name 'react-popper' --output.file dist/react-popper.js", |
23 | 23 | "build:flow": "flow-copy-source --ignore '{__mocks__/*,*.test}.js' src lib", |
24 | | - "build:umd-min": "MINIFY=true rollup -c --output.format umd --output.name 'react-popper' --output.file dist/react-popper.umd.min.js", |
25 | | - "build:cjs-min": "MINIFY=true rollup -c --output.format cjs --output.name 'react-popper' --output.file dist/react-popper.min.js", |
| 24 | + "build:umd-min": |
| 25 | + "MINIFY=true rollup -c --output.format umd --output.name 'react-popper' --output.file dist/react-popper.umd.min.js", |
| 26 | + "build:cjs-min": |
| 27 | + "MINIFY=true rollup -c --output.format cjs --output.name 'react-popper' --output.file dist/react-popper.min.js", |
26 | 28 | "demo": "parcel --out-dir demo/dist demo/index.html", |
27 | 29 | "pretest": "npm run lint", |
28 | 30 | "test": "npm run test:flow && npm run test:ts && npm run test:jest", |
29 | 31 | "test:ts": "tsc --project ./typings/tests", |
30 | 32 | "test:flow": "flow check", |
31 | 33 | "test:jest": "jest", |
32 | 34 | "prepare": "npm run build", |
33 | | - "precommit": "lint-staged", |
34 | | - "format": "npm run lint -- --fix --quiet", |
35 | | - "lint": "eslint --ext .js,.jsx src/ example/" |
| 35 | + "precommit": "pretty-quick --staged && eslint src" |
36 | 36 | }, |
37 | 37 | "jest": { |
38 | 38 | "setupTestFrameworkScriptFile": "<rootDir>jest.setup.js", |
39 | | - "snapshotSerializers": [ |
40 | | - "enzyme-to-json/serializer" |
41 | | - ] |
| 39 | + "snapshotSerializers": ["enzyme-to-json/serializer"] |
42 | 40 | }, |
43 | 41 | "repository": { |
44 | 42 | "type": "git", |
|
56 | 54 | "tooltip", |
57 | 55 | "popover" |
58 | 56 | ], |
59 | | - "lint-staged": { |
60 | | - "@(src|demo)/**/*.{js,jsx}": [ |
61 | | - "eslint --fix --max-warnings 5", |
62 | | - "git add" |
63 | | - ] |
64 | | - }, |
65 | 57 | "peerDependencies": { |
66 | 58 | "react": "0.14.x || ^15.0.0 || ^16.0.0", |
67 | 59 | "react-dom": "0.14.x || ^15.0.0 || ^16.0.0" |
68 | 60 | }, |
69 | 61 | "dependencies": { |
70 | 62 | "create-react-context": "^0.2.1", |
71 | 63 | "popper.js": "^1.14.1", |
72 | | - "prop-types": "^15.6.1" |
| 64 | + "warning": "^3.0.0" |
73 | 65 | }, |
74 | 66 | "devDependencies": { |
75 | 67 | "@types/react": "^16.1.0", |
|
83 | 75 | "babel-preset-env": "^1.6.1", |
84 | 76 | "babel-preset-react": "^6.24.1", |
85 | 77 | "babel-preset-stage-2": "^6.24.1", |
86 | | - "chokidar": "^1.6.1", |
87 | | - "create-styled-element": "^0.4.0", |
88 | 78 | "enzyme": "^3.3.0", |
89 | 79 | "enzyme-adapter-react-16": "^1.1.1", |
90 | 80 | "enzyme-to-json": "^3.3.3", |
91 | 81 | "eslint": "^4.19.1", |
92 | 82 | "eslint-config-prettier": "^2.9.0", |
93 | | - "eslint-config-standard": "^11.0.0", |
94 | | - "eslint-config-standard-react": "^6.0.0", |
95 | | - "eslint-plugin-import": "^2.10.0", |
| 83 | + "eslint-plugin-flowtype": "^2.46.1", |
96 | 84 | "eslint-plugin-jest": "^21.15.0", |
97 | | - "eslint-plugin-node": "^6.0.1", |
98 | | - "eslint-plugin-prettier": "^2.6.0", |
99 | 85 | "eslint-plugin-promise": "^3.7.0", |
100 | 86 | "eslint-plugin-react": "^7.7.0", |
101 | | - "eslint-plugin-standard": "^3.0.1", |
102 | 87 | "flow-bin": "^0.69.0", |
103 | 88 | "flow-copy-source": "^1.3.0", |
104 | | - "glamor": "^2.20.24", |
105 | | - "glamorous": "^3.11.1", |
106 | 89 | "jest": "^22.4.3", |
107 | | - "node-libs-browser": "^1.0.0", |
108 | 90 | "outy": "^0.1.2", |
109 | 91 | "parcel-bundler": "^1.6.2", |
110 | 92 | "prettier": "^1.11.1", |
111 | | - "react": "^16.3.0", |
| 93 | + "pretty-quick": "^1.4.1", |
| 94 | + "react": "16.2.0", |
112 | 95 | "react-dom": "^16.3.0", |
113 | | - "react-measure": "^1.4.6", |
114 | | - "react-motion-ui-pack": "^0.10.2", |
115 | 96 | "react-portal": "^4.1.4", |
116 | 97 | "react-transition-group": "^2.2.1", |
117 | | - "react-travel": "^1.3.0", |
118 | 98 | "rimraf": "^2.6.2", |
119 | 99 | "rollup": "^0.57.1", |
120 | 100 | "rollup-plugin-babel": "^3.0.3", |
|
123 | 103 | "rollup-plugin-node-globals": "^1.2.0", |
124 | 104 | "rollup-plugin-node-resolve": "^3.3.0", |
125 | 105 | "rollup-plugin-replace": "^2.0.0", |
126 | | - "typescript": "^2.8.1", |
127 | | - "velocity-react": "^1.2.2" |
| 106 | + "typescript": "^2.8.1" |
128 | 107 | } |
129 | 108 | } |
0 commit comments