UNPKG

catberry-uri

Version:

URI parser strictly according to RFC 3986

32 lines (24 loc) 713 B
SOURCES = ./lib TESTS = ./test/lib/* all: lint test lint: ./node_modules/.bin/eslint $(SOURCES) $(TESTS) lint-fix: ./node_modules/.bin/eslint $(SOURCES) $(TESTS) --fix test: ifeq ($(TRAVIS),true) @echo "Running tests for Travis..." $(MAKE) travis-cov else @echo "Running tests..." ./node_modules/.bin/mocha $(TESTS) --recursive endif test-cov: @echo "Getting coverage report..." ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- $(TESTS) --recursive travis-cov: @echo "Getting coverage for Travis..." ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- $(TESTS) --recursive -R spec && ./node_modules/.bin/codecov clean: rm -rf coverage .PHONY: test