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 - node_modules
key: dependencies-{{ checksum "yarn.lock" }} 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: lint:
<<: *defaults <<: *defaults
steps: steps:
@ -42,9 +26,6 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
- dependencies-{{ checksum "yarn.lock" }} - dependencies-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- flow-typed-{{ checksum "yarn.lock" }}
- run: yarn lint - run: yarn lint
test: test:
@ -87,12 +68,8 @@ workflows:
test: test:
jobs: jobs:
- install - install
- flow-typed:
requires:
- install
- lint: - lint:
requires: requires:
- flow-typed
- install - install
- test: - test:
requires: requires:

1
.gitignore vendored
View File

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

View File

@ -5,7 +5,6 @@ install:
- npm install -g codecov - npm install -g codecov
script: script:
- yarn install - yarn install
- yarn flow-typed
- yarn lint - yarn lint
- yarn test:coverage --runInBand --no-cache - yarn test:coverage --runInBand --no-cache
- yarn test --runInBand --no-cache - yarn test --runInBand --no-cache
@ -13,4 +12,3 @@ script:
cache: cache:
directories: directories:
- node_modules - node_modules
- flow-typed

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", "deploy": "yarn run clean && gatsby build --prefix-paths && gh-pages -d public",
"clean": "rimraf .cache public", "clean": "rimraf .cache public",
"flow": "flow", "flow": "flow",
"flow-typed": "flow-typed install",
"lint:js": "eslint --cache --ext .js,.jsx .", "lint:js": "eslint --cache --ext .js,.jsx .",
"lint:scss": "stylelint \"src/**/*.scss\"", "lint:scss": "stylelint \"src/**/*.scss\"",
"lint": "concurrently \"yarn run lint:js\" \"yarn run lint:scss\" \"yarn flow\"", "lint": "concurrently \"yarn run lint:js\" \"yarn run lint:scss\" \"yarn flow\"",