diff --git a/Makefile b/Makefile index 850316c344..9dc300ba6c 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,10 @@ MAKEFLAGS = -j1 export NODE_ENV = test -.PHONY: build build-dist watch lint fix clean test-clean test-only test test-cov test-ci publish bootstrap +.PHONY: build build-dist watch lint fix clean test-clean test-only test test-ci publish bootstrap build: clean - BABEL_ENV=development ./node_modules/.bin/gulp build + ./node_modules/.bin/gulp build build-dist: build cd packages/babel-polyfill; \ @@ -16,7 +16,7 @@ build-dist: build watch: clean rm -rf packages/*/lib - BABEL_ENV=development ./node_modules/.bin/gulp watch + ./node_modules/.bin/gulp watch lint: ./node_modules/.bin/eslint packages/ --format=codeframe @@ -42,22 +42,15 @@ clean-all: rm -rf packages/*/node_modules make clean -# without lint test-only: ./scripts/test.sh make test-clean test: lint test-only -test-cov: clean - # rebuild with test - rm -rf packages/*/lib - BABEL_ENV=test ./node_modules/.bin/gulp build - ./scripts/test-cov.sh - test-ci: - NODE_ENV=test make bootstrap - make test-cov + NODE_ENV=test BABEL_ENV=cov make bootstrap + ./scripts/test-cov.sh ./node_modules/.bin/codecov -f coverage/coverage-final.json publish: @@ -68,7 +61,6 @@ publish: # not using lerna independent mode atm, so only update packages that have changed since we use ^ ./node_modules/.bin/lerna publish --only-explicit-updates make clean - #./scripts/build-website.sh bootstrap: make clean-all diff --git a/package.json b/package.json index 30fdfe6149..90db588cb8 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "transform-flow-strip-types" ], "env": { - "test": { + "cov": { "auxiliaryCommentBefore": "istanbul ignore next", "plugins": [ "istanbul"