@@ -7,22 +7,26 @@ REMOTE="git@github.com:reactjs/react-modal"
77
88VERSION =$(shell jq ".version" package.json)
99
10+ COVERAGE? =true
11+
1012help : info
1113 @echo
1214 @echo " Current version: $( VERSION) "
1315 @echo
1416 @echo " List of commands:"
1517 @echo
16- @echo " make info - display node, npm and yarn versions..."
17- @echo " make deps - install all dependencies."
18- @echo " make serve - start the server."
19- @echo " make tests - run tests."
20- @echo " make lint - run lint."
21- @echo " make docs - build and serve the docs."
22- @echo " make build - build project artifacts."
23- @echo " make publish - build and publish version on npm."
24- @echo " make publish-docs - build the docs and publish to gh-pages."
25- @echo " make publish-all - publish version and docs."
18+ @echo " make info - display node, npm and yarn versions..."
19+ @echo " make deps - install all dependencies."
20+ @echo " make serve - start the server."
21+ @echo " make tests - run tests."
22+ @echo " make tests-single-run - run tests (used by continuous integration)."
23+ @echo " make coveralls - show coveralls."
24+ @echo " make lint - run lint."
25+ @echo " make docs - build and serve the docs."
26+ @echo " make build - build project artifacts."
27+ @echo " make publish - build and publish version on npm."
28+ @echo " make publish-docs - build the docs and publish to gh-pages."
29+ @echo " make publish-all - publish version and docs."
2630
2731info :
2832 @echo node version: ` $( NODE) --version` " ($( NODE) )"
@@ -46,9 +50,15 @@ serve:
4650tests :
4751 @npm run test
4852
49- tests-ci :
53+ tests-single-run :
5054 @npm run test -- --single-run
5155
56+ coveralls :
57+ @cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
58+
59+ tests-ci : lint tests-single-run coveralls clean
60+ @COVERAGE=$(COVERAGE ) make -C tests-single-run
61+
5262lint :
5363 @npm run lint
5464
@@ -91,9 +101,6 @@ publish-version: release-commit release-tag
91101
92102publish-finished : clean
93103
94- clean :
95- @rm -rf .version .branch
96-
97104pre-publish : clean .branch .version deps-project tests-ci build
98105
99106publish : pre-publish publish-version publish-finished
@@ -111,3 +118,6 @@ publish-docs: deps-docs build-docs
111118 cd ..
112119
113120publish-all : publish publish-docs
121+
122+ clean :
123+ @rm -rf .version .branch ./coverage
0 commit comments