|
22 | 22 | "scripts": { |
23 | 23 | "build": "babel-node ./tools/scripts/build.js", |
24 | 24 | "check": "yarn run lint && yarn run test", |
25 | | - "clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage && rimraf ./umd", |
| 25 | + "clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd", |
26 | 26 | "example:web": "echo 'Make sure to `cd example/web && yarn install`' && cd example/web && yarn run start", |
27 | | - "flow": "babel-node ./tools/scripts/flow", |
28 | | - "flow:coverage": "flow-coverage-report -i 'src/**/*.js' -t html -t json -t text", |
29 | | - "flow:defs": "flow-typed install --overwrite", |
30 | 27 | "lint": "eslint src", |
| 28 | + "precommit": "lint-staged && npm run test", |
31 | 29 | "prepublish": "yarn run build", |
32 | 30 | "test": "jest", |
33 | 31 | "test:coverage": "yarn run test -- --coverage", |
34 | 32 | "test:coverage:deploy": "yarn run test:coverage && codecov" |
35 | 33 | }, |
| 34 | + "jest": { |
| 35 | + "collectCoverageFrom": [ |
| 36 | + "src/**/*.{js,jsx}" |
| 37 | + ], |
| 38 | + "testPathIgnorePatterns": [ |
| 39 | + "<rootDir>/(commonjs|coverage|flow-typed|node_modules|tools|umd)/" |
| 40 | + ] |
| 41 | + }, |
| 42 | + "lint-staged": { |
| 43 | + "*.js": [ |
| 44 | + "prettier-eslint --write", |
| 45 | + "git add" |
| 46 | + ] |
| 47 | + }, |
36 | 48 | "devDependencies": { |
37 | 49 | "app-root-dir": "1.0.2", |
38 | | - "babel-cli": "6.18.0", |
39 | | - "babel-core": "6.21.0", |
| 50 | + "babel-cli": "6.24.0", |
| 51 | + "babel-core": "6.24.0", |
40 | 52 | "babel-eslint": "7.1.1", |
41 | | - "babel-jest": "18.0.0", |
42 | | - "babel-loader": "6.2.10", |
43 | | - "babel-plugin-syntax-flow": "6.18.0", |
44 | | - "babel-plugin-transform-flow-strip-types": "6.21.0", |
45 | | - "babel-polyfill": "6.20.0", |
46 | | - "babel-preset-env": "1.1.8", |
47 | | - "babel-preset-latest": "6.16.0", |
48 | | - "babel-preset-stage-3": "6.17.0", |
49 | | - "babel-register": "6.18.0", |
| 53 | + "babel-jest": "19.0.0", |
| 54 | + "babel-loader": "6.4.0", |
| 55 | + "babel-polyfill": "6.23.0", |
| 56 | + "babel-preset-env": "1.2.1", |
| 57 | + "babel-preset-latest": "6.24.0", |
| 58 | + "babel-preset-stage-3": "6.22.0", |
| 59 | + "babel-register": "6.24.0", |
50 | 60 | "codecov": "1.0.1", |
51 | | - "cross-env": "3.1.4", |
52 | | - "eslint": "3.13.1", |
53 | | - "eslint-config-airbnb": "14.0.0", |
54 | | - "eslint-plugin-flowtype": "2.30.0", |
| 61 | + "cross-env": "3.2.3", |
| 62 | + "eslint": "3.17.1", |
| 63 | + "eslint-config-airbnb": "14.1.0", |
55 | 64 | "eslint-plugin-import": "2.2.0", |
56 | | - "eslint-plugin-jsx-a11y": "3.0.2", |
57 | | - "flow-bin": "0.37.4", |
58 | | - "flow-coverage-report": "0.2.0", |
59 | | - "flow-typed": "2.0.0", |
60 | | - "ghooks": "2.0.0", |
| 65 | + "eslint-plugin-jsx-a11y": "4.0.0", |
61 | 66 | "gzip-size": "3.0.0", |
| 67 | + "husky": "0.13.2", |
62 | 68 | "in-publish": "2.0.0", |
63 | | - "jest": "18.1.0", |
| 69 | + "jest": "19.0.2", |
| 70 | + "lint-staged": "3.4.0", |
| 71 | + "prettier": "0.22.0", |
| 72 | + "prettier-eslint": "4.2.1", |
| 73 | + "prettier-eslint-cli": "3.1.2", |
64 | 74 | "pretty-bytes": "4.0.2", |
65 | 75 | "ramda": "0.23.0", |
66 | | - "readline-sync": "1.4.5", |
67 | | - "rimraf": "2.5.4", |
68 | | - "webpack": "2.2.0-rc.3", |
69 | | - "webpack-dev-middleware": "1.9.0", |
70 | | - "webpack-hot-middleware": "2.15.0" |
71 | | - }, |
72 | | - "config": { |
73 | | - "ghooks": { |
74 | | - "pre-commit": "yarn run check" |
75 | | - } |
76 | | - }, |
77 | | - "jest": { |
78 | | - "collectCoverageFrom": [ |
79 | | - "src/**/*.{js,jsx}" |
80 | | - ], |
81 | | - "testPathIgnorePatterns": [ |
82 | | - "<rootDir>/(commonjs|coverage|flow-typed|node_modules|tools|umd)/" |
83 | | - ] |
| 76 | + "readline-sync": "1.4.6", |
| 77 | + "rimraf": "2.6.1", |
| 78 | + "webpack": "2.2.1", |
| 79 | + "webpack-dev-middleware": "1.10.1", |
| 80 | + "webpack-hot-middleware": "2.17.1" |
84 | 81 | } |
85 | 82 | } |
0 commit comments