|
21 | 21 | "scripts": { |
22 | 22 | "watch": |
23 | 23 | "babel --plugins transform-es2015-modules-umd src --watch --ignore tests --out-dir ./dist", |
24 | | - "prepublish": |
25 | | - "babel --plugins transform-es2015-modules-umd src --ignore tests --out-dir ./dist", |
| 24 | + "build": "babel --plugins transform-es2015-modules-umd src --ignore tests --out-dir ./dist", |
26 | 25 | "lint": "eslint 'src/**/*.js'", |
27 | 26 | "prettier": "prettier --write 'src/**/*.{js,jsx,json,css}'", |
28 | 27 | "testonly": "mocha $npm_package_options_mocha", |
29 | | - "test": "npm run lint && npm run testonly", |
| 28 | + "test": "npm run lint && npm run testonly && npm run flow", |
30 | 29 | "test-watch": "npm run testonly -- --watch --watch-extensions js", |
31 | 30 | "storybook": "start-storybook -p 6006", |
32 | | - "build-storybook": "build-storybook", |
33 | | - "flow": "flow" |
| 31 | + "flow": "flow", |
| 32 | + "precommit": "npm run test", |
| 33 | + "prepush": "npm run test" |
34 | 34 | }, |
35 | 35 | "devDependencies": { |
36 | 36 | "@storybook/react": "^3.1.9", |
37 | 37 | "babel-cli": "^6.6.4", |
38 | 38 | "babel-core": "^6.7.4", |
39 | | - "babel-eslint": "^6.0.2", |
| 39 | + "babel-eslint": "^8.0.2", |
40 | 40 | "babel-plugin-transform-es2015-modules-umd": "^6.6.5", |
41 | 41 | "babel-polyfill": "^6.7.4", |
42 | 42 | "babel-preset-es2015": "^6.6.0", |
43 | 43 | "babel-preset-flow": "^6.23.0", |
44 | 44 | "babel-preset-react": "^6.5.0", |
45 | 45 | "babel-preset-stage-2": "^6.5.0", |
46 | | - "chai": "^3.5.0", |
47 | | - "chai-enzyme": "^0.6.1", |
48 | | - "enzyme": "^2.2.0", |
49 | | - "eslint": "^2.7.0", |
| 46 | + "chai": "^4.1.2", |
| 47 | + "chai-enzyme": "^1.0.0-beta.0", |
| 48 | + "enzyme": "^3.2.0", |
| 49 | + "eslint": "^4.12.0", |
50 | 50 | "eslint-config-prettier": "^2.4.0", |
51 | | - "eslint-plugin-babel": "^3.1.0", |
| 51 | + "eslint-plugin-babel": "^4.1.2", |
52 | 52 | "eslint-plugin-prettier": "^2.2.0", |
53 | | - "eslint-plugin-react": "^4.2.3", |
54 | | - "flow-bin": "^0.57.3", |
55 | | - "jsdom": "^8.1.0", |
56 | | - "mocha": "^2.4.5", |
| 53 | + "eslint-plugin-react": "^7.5.1", |
| 54 | + "flow-bin": "^0.59.0", |
| 55 | + "husky": "^0.14.3", |
| 56 | + "jsdom": "^11.1.0", |
| 57 | + "mocha": "^4.0.1", |
57 | 58 | "nodemon": "^1.9.1", |
58 | 59 | "prettier": "^1.6.1", |
59 | | - "prop-types": "^15.5.10", |
60 | | - "react": "^15.0.0", |
| 60 | + "react": "^16.1.1", |
61 | 61 | "react-addons-test-utils": "^15.0.0", |
62 | | - "react-dom": "^15.0.0", |
63 | | - "sinon": "^1.17.3", |
| 62 | + "react-dom": "^16.1.1", |
| 63 | + "sinon": "^4.1.2", |
64 | 64 | "uuid": "^3.0.1" |
65 | 65 | }, |
66 | 66 | "peerDependencies": { |
67 | 67 | "react": "~0.14.8 || ^15.0.0", |
68 | 68 | "react-dom": "~0.14.8 || ^15.0.0" |
69 | 69 | }, |
70 | 70 | "dependencies": { |
71 | | - "babel-runtime": "^6.6.1" |
| 71 | + "babel-runtime": "^6.6.1", |
| 72 | + "enzyme-adapter-react-16": "^1.1.0" |
72 | 73 | } |
73 | 74 | } |
0 commit comments