Skip to content

Commit

Permalink
fix(flow): update flow (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
arahansen authored Apr 18, 2018
1 parent d38f00d commit ccdbcbd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
27 changes: 20 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
"main": "index.js",
"unpkg": "dist/gymnast.min.js",
"homepage": "https://gymnastjs.github.io/gymnast",
"files": ["package.json", "README.md", "LICENSE", "src", "dist", "index.js"],
"files": [
"package.json",
"README.md",
"LICENSE",
"src",
"dist",
"index.js"
],
"repository": {
"type": "git",
"url": "https://github.com/gymnastjs/gymnast"
Expand Down Expand Up @@ -60,7 +67,7 @@
"eslint-plugin-react": "7.6.1",
"extract-text-webpack-plugin": "3.0.2",
"find-up": "2.1.0",
"flow-bin": "0.65.0",
"flow-bin": "0.70.0",
"flow-copy-source": "1.3.0",
"html-loader": "0.5.5",
"husky": "0.14.3",
Expand Down Expand Up @@ -97,7 +104,10 @@
"webpack-bundle-analyzer": "2.10.0"
},
"lint-staged": {
"*.{js,css}": ["format", "git add"]
"*.{js,css}": [
"format",
"git add"
]
},
"bundlesize": [
{
Expand All @@ -106,7 +116,9 @@
}
],
"jest": {
"collectCoverageFrom": ["src/{,**/}*.js"],
"collectCoverageFrom": [
"src/{,**/}*.js"
],
"setupTestFrameworkScriptFile": "<rootDir>/test/env.js",
"moduleNameMapper": {
"^.+[.]css$": "identity-obj-proxy",
Expand All @@ -115,7 +127,9 @@
"transform": {
"^.+[.]js$": "babel-jest"
},
"transformIgnorePatterns": ["<rootDir>/node_modules\\/(?!picturebook)"]
"transformIgnorePatterns": [
"<rootDir>/node_modules\\/(?!picturebook)"
]
},
"scripts": {
"build:dev": "webpack --config scripts/webpack.config.js",
Expand All @@ -137,8 +151,7 @@
"start:webpack": "yarn build:dev --watch",
"start": "npm-run-all --parallel start:*",
"test:bithound": "bithound check git@github.com:gymnastjs/gymnast.git",
"test:image":
"picturebook-image --env iphone7,ie11,safari,firefox,edge,chrome --suiteRetries 3",
"test:image": "picturebook-image --env iphone7,ie11,safari,firefox,edge,chrome --suiteRetries 3",
"test:size": "bundlesize",
"test": "jest",
"test:cover": "jest --coverage",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const isDefined = val => typeof val !== 'undefined'

export const splitPattern = /(?:(?:\s+)?,(?:\s+)?|\s+)/
export const noop: Noop = () => null
export const times = (n: number) =>
export const times = (n: number): Array<*> =>
new Array(n).fill(undefined).map((val, index) => index)
export const kebabCase = (str: string) =>
str
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4618,9 +4618,9 @@ flatten@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"

flow-bin@0.65.0:
version "0.65.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.65.0.tgz#64ffeca27211c786e2d68508c65686ba1b8a2169"
flow-bin@0.70.0:
version "0.70.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.70.0.tgz#080ae83a997f2b4ddb3dc2649bf13336825292b5"

flow-copy-source@1.3.0:
version "1.3.0"
Expand Down

0 comments on commit ccdbcbd

Please sign in to comment.