From 828ce54637b9d5e838b6d78e8265fa9cf8f96812 Mon Sep 17 00:00:00 2001 From: Daniel Lo Nigro Date: Sun, 15 Nov 2015 21:44:03 -0800 Subject: [PATCH] Run Flow after building so that it actually runs properly in a CI run. It seems like there's a bunch of "module not found" if you run a Flow check before building, even after running "npm install". --- Makefile | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 588c2cbd78..f73cb9776d 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,6 @@ watch: clean lint: node node_modules/.bin/eslint packages/*/src - flow clean: test-clean rm -rf packages/babel-polyfill/browser* @@ -47,6 +46,7 @@ test-cov: clean test-ci: make lint NODE_ENV=test make bootstrap + ./node_modules/.bin/flow check ./scripts/test-cov.sh cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js diff --git a/package.json b/package.json index 66a71c1392..6b702ea164 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "derequire": "^2.0.2", "es5-shim": "^4.1.7", "eslint": "1.8.0", + "flow-bin": "^0.18.1", "fs-readdir-recursive": "^0.1.2", "gulp": "^3.9.0", "gulp-babel": "^5.3.0",