loopback-datasource-juggler/Makefile

44 lines
913 B
Makefile
Raw Normal View History

2013-03-24 21:22:23 +00:00
TESTER = ./node_modules/.bin/mocha
2013-04-06 10:57:12 +00:00
OPTS = --growl
2013-03-24 21:22:23 +00:00
TESTS = test/*.test.js
2011-11-05 10:54:52 +00:00
2015-11-25 05:52:44 +00:00
default: help
2015-11-25 06:04:13 +00:00
.PHONY: clean
clean:
rm -rf $(CURDIR)/node_modules
2015-11-25 05:52:44 +00:00
.PHONY: help
help:
@echo 'Usage: make [target]'
@echo 'Targets:'
2015-11-25 06:04:13 +00:00
@echo ' clean Delete `node_modules`'
2015-11-25 05:52:44 +00:00
@echo ' help Print help (this message)'
2015-11-25 06:06:34 +00:00
@echo ' refresh Delete `node_modules` and run `npm install`'
2015-11-25 05:52:44 +00:00
@echo ' test Run tests in silent mode'
@echo ' test-verbose Run tests in verbose mode'
@echo ' testing Run tests continuously'
2015-11-25 06:06:34 +00:00
.PHONY: refresh
refresh: clean
npm install
2015-11-25 05:52:44 +00:00
.PHONY: test
2013-03-24 21:22:23 +00:00
test:
NO_DEPRECATION=loopback-datasource-juggler $(TESTER) $(OPTS) $(TESTS)
2015-11-25 05:52:44 +00:00
.PHONY: test-verbose
test-verbose:
2013-03-24 21:22:23 +00:00
$(TESTER) $(OPTS) --reporter spec $(TESTS)
2015-11-25 05:52:44 +00:00
.PHONY: testing
2013-03-24 21:22:23 +00:00
testing:
$(TESTER) $(OPTS) --watch $(TESTS)
2015-11-25 05:52:44 +00:00
# Deprecated targets
2015-11-25 05:52:44 +00:00
.PHONY: about-testing
about-testing:
@echo 'DEPRECATED: Use `make help` instead'
make help