|
12 | 12 | ], |
13 | 13 | "scripts": { |
14 | 14 | "clean": "rimraf lib dist es .nyc_output", |
| 15 | + "flow": "flow; test $? -eq 0 -o $? -eq 2", |
15 | 16 | "test": "cross-env BABEL_ENV=commonjs nyc --require babel-register --require ./test/setup.js mocha --recursive", |
16 | 17 | "test:watch": "npm test -- --watch", |
17 | 18 | "test:cov": "nyc report --reporter=text-lcov | coveralls", |
18 | | - "check:src": "npm run lint && npm run test", |
| 19 | + "check:src": "npm run lint && npm run flow && npm run test", |
19 | 20 | "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", |
20 | 21 | "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", |
21 | 22 | "build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js dist/react-cssom.js", |
|
49 | 50 | "babel-plugin-transform-es2015-modules-commonjs": "6.10.3", |
50 | 51 | "babel-plugin-transform-es3-member-expression-literals": "6.8.0", |
51 | 52 | "babel-plugin-transform-es3-property-literals": "6.8.0", |
| 53 | + "babel-plugin-transform-flow-strip-types": "6.21.0", |
52 | 54 | "babel-plugin-transform-object-rest-spread": "6.8.0", |
53 | 55 | "babel-preset-es2015": "6.5.0", |
54 | 56 | "babel-preset-react": "6.5.0", |
|
63 | 65 | "eslint-plugin-jsx-a11y": "1.3.0", |
64 | 66 | "eslint-plugin-react": "5.1.1", |
65 | 67 | "expect": "1.20.2", |
| 68 | + "flow-bin": "0.37.4", |
66 | 69 | "istanbul": "0.4.5", |
67 | 70 | "jsdom": "9.5.0", |
68 | 71 | "mocha": "3.0.2", |
|
0 commit comments