From 9efe043c79bba581999a936205775658a059ad0f Mon Sep 17 00:00:00 2001 From: Alexander Smith Date: Tue, 28 Nov 2017 17:47:29 -0800 Subject: [PATCH] Add Flow step to pipeline.yml --- .buildkite/pipeline.yml | 5 +++++ .flowconfig | 14 ++++++++++++++ package.json | 1 + yarn.lock | 4 ++++ 4 files changed, 24 insertions(+) create mode 100644 .flowconfig diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index f3d41c6a..8ebbc56c 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -5,6 +5,11 @@ steps: build: fusion-plugin-universal-events image-repository: 296822479253.dkr.ecr.us-east-2.amazonaws.com/fusionjs - wait + - command: yarn flow + name: ':flowtype:' + plugins: + 'docker-compose#v1.7.0': + run: fusion-plugin-universal-events - name: ':eslint:' command: yarn lint plugins: diff --git a/.flowconfig b/.flowconfig new file mode 100644 index 00000000..9b82a174 --- /dev/null +++ b/.flowconfig @@ -0,0 +1,14 @@ +[ignore] +.*/node_modules/.*[^(package)]\.json$ + +[include] +./src/ + +[libs] + +[lints] + +[options] +suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore + +[strict] diff --git a/package.json b/package.json index e724de17..315db848 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "eslint-plugin-flowtype": "^2.39.1", "eslint-plugin-prettier": "^2.3.1", "eslint-plugin-react": "^7.4.0", + "flow-bin": "^0.59.0", "fusion-core": "^0.2.3", "prettier": "1.8.2", "tape-cup": "^4.7.1", diff --git a/yarn.lock b/yarn.lock index 223ebd9d..066ee03c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1946,6 +1946,10 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" +flow-bin@^0.59.0: + version "0.59.0" + resolved "https://registry.npmjs.org/flow-bin/-/flow-bin-0.59.0.tgz#8c151ee7f09f1deed9bf0b9d1f2e8ab9d470f1bb" + for-each@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.2.tgz#2c40450b9348e97f281322593ba96704b9abd4d4"