|
18 | 18 | "dist", |
19 | 19 | "typings/react-popper-tooltip.d.ts" |
20 | 20 | ], |
| 21 | + "sideEffects": [ |
| 22 | + "*.css" |
| 23 | + ], |
21 | 24 | "scripts": { |
22 | 25 | "build": "rimraf dist lib && rollup -c && cp src/styles.css dist", |
23 | 26 | "prepublishOnly": "yarn lint && yarn build", |
24 | 27 | "docs": "docz dev", |
25 | 28 | "docs:build": "docz build", |
26 | 29 | "docs:deploy": "yarn docs:build && cp .docz/dist/index.html .docz/dist/404.html && gh-pages -d .docz/dist", |
27 | | - "lint": "eslint ." |
| 30 | + "lint": "eslint .", |
| 31 | + "test": "jest", |
| 32 | + "test:watch": "jest --watch" |
28 | 33 | }, |
29 | | - "pre-commit": "lint", |
| 34 | + "pre-commit": [ |
| 35 | + "lint", |
| 36 | + "test" |
| 37 | + ], |
30 | 38 | "keywords": [ |
31 | 39 | "react", |
32 | 40 | "tooltip", |
|
37 | 45 | ], |
38 | 46 | "author": "Mohsin Ul Haq <[email protected]>", |
39 | 47 | "license": "MIT", |
40 | | - "browserslist": [ |
41 | | - ">0.2%", |
42 | | - "not dead", |
43 | | - "not ie <= 11", |
44 | | - "not op_mini all" |
45 | | - ], |
46 | | - "prettier": { |
47 | | - "singleQuote": true |
48 | | - }, |
49 | | - "eslintConfig": { |
50 | | - "env": { |
51 | | - "browser": true, |
52 | | - "es6": true, |
53 | | - "node": true |
54 | | - }, |
55 | | - "parser": "babel-eslint", |
56 | | - "extends": [ |
57 | | - "eslint:recommended", |
58 | | - "plugin:react/recommended", |
59 | | - "plugin:jsx-a11y/recommended", |
60 | | - "plugin:prettier/recommended" |
61 | | - ], |
62 | | - "parserOptions": { |
63 | | - "ecmaFeatures": { |
64 | | - "jsx": true |
65 | | - }, |
66 | | - "ecmaVersion": 2018, |
67 | | - "sourceType": "module" |
68 | | - }, |
69 | | - "plugins": [ |
70 | | - "react", |
71 | | - "jsx-a11y" |
72 | | - ], |
73 | | - "settings": { |
74 | | - "react": { |
75 | | - "version": "latest" |
76 | | - } |
77 | | - }, |
78 | | - "rules": { |
79 | | - "indent": [ |
80 | | - "error", |
81 | | - 2 |
82 | | - ], |
83 | | - "linebreak-style": [ |
84 | | - "error", |
85 | | - "unix" |
86 | | - ], |
87 | | - "quotes": [ |
88 | | - "error", |
89 | | - "single" |
90 | | - ], |
91 | | - "semi": [ |
92 | | - "error", |
93 | | - "always" |
94 | | - ] |
95 | | - } |
96 | | - }, |
97 | | - "eslintIgnore": [ |
98 | | - "dist", |
99 | | - "lib", |
100 | | - "docs" |
101 | | - ], |
102 | 48 | "peerDependencies": { |
103 | | - "react": "^16.6.0", |
104 | | - "react-dom": "^16.6.0" |
| 49 | + "react": "^16.6.3", |
| 50 | + "react-dom": "^16.6.3" |
105 | 51 | }, |
106 | 52 | "dependencies": { |
107 | | - "@babel/runtime": "^7.1.2", |
108 | | - "react-popper": "^1.0.2" |
| 53 | + "@babel/runtime": "^7.2.0", |
| 54 | + "react-popper": "^1.3.0" |
109 | 55 | }, |
110 | 56 | "devDependencies": { |
111 | | - "@babel/cli": "^7.1.2", |
112 | | - "@babel/core": "^7.1.2", |
113 | | - "@babel/plugin-proposal-class-properties": "^7.1.0", |
114 | | - "@babel/plugin-transform-runtime": "^7.1.0", |
115 | | - "@babel/preset-env": "^7.1.0", |
| 57 | + "@babel/cli": "^7.2.0", |
| 58 | + "@babel/core": "^7.2.0", |
| 59 | + "@babel/plugin-proposal-class-properties": "^7.2.1", |
| 60 | + "@babel/plugin-transform-runtime": "^7.2.0", |
| 61 | + "@babel/preset-env": "^7.2.0", |
116 | 62 | "@babel/preset-react": "^7.0.0", |
| 63 | + "@types/jest": "^23.3.10", |
| 64 | + "@types/react": "^16.7.13", |
| 65 | + "@types/react-dom": "^16.0.11", |
| 66 | + "babel-core": "^7.0.0-bridge", |
117 | 67 | "babel-eslint": "^10.0.1", |
118 | | - "babel-plugin-transform-react-remove-prop-types": "^0.4.19", |
119 | | - "docz": "^0.12.5", |
| 68 | + "babel-jest": "^23.6.0", |
| 69 | + "babel-plugin-transform-react-remove-prop-types": "^0.4.21", |
| 70 | + "docz": "^0.12.15", |
120 | 71 | "docz-plugin-css": "^0.11.0", |
121 | | - "eslint": "^5.8.0", |
122 | | - "eslint-config-prettier": "^3.1.0", |
| 72 | + "eslint": "^5.9.0", |
| 73 | + "eslint-config-prettier": "^3.3.0", |
| 74 | + "eslint-plugin-jest": "^22.1.2", |
123 | 75 | "eslint-plugin-jsx-a11y": "^6.1.2", |
124 | 76 | "eslint-plugin-prettier": "^3.0.0", |
125 | 77 | "eslint-plugin-react": "^7.11.1", |
126 | 78 | "gh-pages": "^2.0.1", |
| 79 | + "jest": "^23.6.0", |
127 | 80 | "pre-commit": "^1.2.2", |
128 | | - "prettier": "^1.14.3", |
| 81 | + "prettier": "^1.15.3", |
129 | 82 | "prop-types": "^15.6.2", |
130 | | - "react": "^16.6.0", |
131 | | - "react-dom": "^16.6.0", |
| 83 | + "react": "^16.6.3", |
| 84 | + "react-dom": "^16.6.3", |
| 85 | + "react-testing-library": "^5.3.1", |
132 | 86 | "rimraf": "^2.6.2", |
133 | | - "rollup": "^0.66.6", |
| 87 | + "rollup": "^0.67.4", |
134 | 88 | "rollup-plugin-babel": "^4.0.3", |
135 | 89 | "rollup-plugin-commonjs": "^9.2.0", |
136 | 90 | "rollup-plugin-node-resolve": "^3.4.0", |
137 | 91 | "rollup-plugin-size-snapshot": "^0.7.0", |
138 | 92 | "rollup-plugin-terser": "^3.0.0" |
139 | | - }, |
140 | | - "sideEffects": [ |
141 | | - "*.css" |
142 | | - ] |
| 93 | + } |
143 | 94 | } |
0 commit comments