Add refresh script

This commit is contained in:
Simon Ho 2015-11-24 22:06:34 -08:00
parent 70871a5a44
commit 003cb1061f
2 changed files with 6 additions and 0 deletions

View File

@ -14,10 +14,15 @@ help:
@echo 'Targets:'
@echo ' clean Delete `node_modules`'
@echo ' help Print help (this message)'
@echo ' refresh Delete `node_modules` and run `npm install`'
@echo ' test Run tests in silent mode'
@echo ' test-verbose Run tests in verbose mode'
@echo ' testing Run tests continuously'
.PHONY: refresh
refresh: clean
npm install
.PHONY: test
test:
NO_DEPRECATION=loopback-datasource-juggler $(TESTER) $(OPTS) $(TESTS)

View File

@ -22,6 +22,7 @@
"scripts": {
"clean": "make clean",
"help": "make help",
"refresh": "make refresh",
"test": "make test"
},
"engines": [