Skip to content

Commit ba3c07a

Browse files
authored
Add flow-bin and update jest (#106)
Also run flow on ci Fix one flow error.
1 parent cb96efb commit ba3c07a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ node_js:
44
- 4
55
- 5
66
- stable
7-
script:
8-
- npm run lint
9-
- npm run test
7+
script: npm run check

flow/react-docgen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type flowFunctionSignatureType = {
3333

3434
type FlowTypeDescriptor = {
3535
name: string,
36+
alias?: string,
3637
value?: string,
3738
required?: boolean,
3839
nullable?: boolean,

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
},
1313
"main": "dist/main.js",
1414
"scripts": {
15+
"check": "npm run lint && npm run flow && npm test",
16+
"flow": "flow",
1517
"lint": "eslint src/",
1618
"watch": "babel src/ --out-dir dist/ --watch",
1719
"build": "rimraf dist/ && babel src/ --out-dir dist/ --ignore __tests__,__mocks__",
@@ -37,15 +39,16 @@
3739
"devDependencies": {
3840
"babel-cli": "^6.9.0",
3941
"babel-eslint": "^6.0.4",
40-
"babel-jest": "^12.1.0",
42+
"babel-jest": "^14.1.0",
4143
"babel-plugin-syntax-flow": "^6.8.0",
4244
"babel-plugin-transform-flow-strip-types": "^6.8.0",
4345
"babel-plugin-transform-runtime": "^6.9.0",
4446
"babel-preset-es2015": "^6.9.0",
4547
"babel-preset-stage-1": "^6.5.0",
4648
"cross-spawn": "^4.0.0",
47-
"eslint": "^2.10.2",
48-
"jest-cli": "^12.1.1",
49+
"eslint": "^3.2.2",
50+
"flow-bin": "^0.30.0",
51+
"jest-cli": "^14.1.0",
4952
"rimraf": "^2.3.2",
5053
"temp": "^0.8.1"
5154
},

0 commit comments

Comments
 (0)