UNPKG

geonames-reader

Version:

An async-friendly streaming parser for geonames data.

38 lines (33 loc) 889 B
.PHONY: test release test-ci-coverage MOCHA=node_modules/.bin/mocha COVERALLS=node_modules/.bin/coveralls _MOCHA=node_modules/.bin/_mocha ISTANBUL=node_modules/.bin/istanbul test: npm test test-ci-coverage: npm install coveralls npm install istanbul @rm -rf coverage $(ISTANBUL) cover $(_MOCHA) --report lcovonly -- -R tap @echo @echo Sending report to coveralls.io... @cat ./coverage/lcov.info | $(COVERALLS) @rm -rf ./coverage @echo Done release: ifeq ($(strip $(version)),) @echo "\033[31mERROR:\033[0;39m No version provided." @echo "\033[1;30mmake release version=1.0.0\033[0;39m" else make test sed -i.bak 's/"version": "[^"]*"/"version": "$(version)"/' package.json rm *.bak git add . git commit -a -m "Released $(version)." git tag v$(version) git push origin master git push origin --tags npm publish @echo "\033[32mv${version} released\033[0;39m" endif