chore: add flow definitions to repo

This commit is contained in:
alxshelepenok 2019-07-20 00:31:05 +03:00
parent 98ffd67d23
commit 04bb148524
5 changed files with 1197 additions and 28 deletions

View File

@ -19,22 +19,6 @@ jobs:
- node_modules
key: dependencies-{{ checksum "yarn.lock" }}
flow-typed:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- flow-typed-{{ checksum "yarn.lock" }}
- run: yarn flow-typed
- save_cache:
paths:
- flow-typed
key: flow-typed-{{ checksum "yarn.lock" }}
lint:
<<: *defaults
steps:
@ -42,9 +26,6 @@ jobs:
- restore_cache:
keys:
- dependencies-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- flow-typed-{{ checksum "yarn.lock" }}
- run: yarn lint
test:
@ -87,12 +68,8 @@ workflows:
test:
jobs:
- install
- flow-typed:
requires:
- install
- lint:
requires:
- flow-typed
- install
- test:
requires:

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
node_modules/
flow-typed/
.cache/
public/
npm-debug.log

View File

@ -5,12 +5,10 @@ install:
- npm install -g codecov
script:
- yarn install
- yarn flow-typed
- yarn lint
- yarn test:coverage --runInBand --no-cache
- yarn test --runInBand --no-cache
- codecov
cache:
directories:
- node_modules
- flow-typed
- node_modules

1196
flow-typed/npm/jest_v24.x.x.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,6 @@
"deploy": "yarn run clean && gatsby build --prefix-paths && gh-pages -d public",
"clean": "rimraf .cache public",
"flow": "flow",
"flow-typed": "flow-typed install",
"lint:js": "eslint --cache --ext .js,.jsx .",
"lint:scss": "stylelint \"src/**/*.scss\"",
"lint": "concurrently \"yarn run lint:js\" \"yarn run lint:scss\" \"yarn flow\"",