Add clean scripts
This commit is contained in:
parent
974536c669
commit
70871a5a44
5
Makefile
5
Makefile
|
@ -4,10 +4,15 @@ TESTS = test/*.test.js
|
||||||
|
|
||||||
default: help
|
default: help
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -rf $(CURDIR)/node_modules
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help:
|
help:
|
||||||
@echo 'Usage: make [target]'
|
@echo 'Usage: make [target]'
|
||||||
@echo 'Targets:'
|
@echo 'Targets:'
|
||||||
|
@echo ' clean Delete `node_modules`'
|
||||||
@echo ' help Print help (this message)'
|
@echo ' help Print help (this message)'
|
||||||
@echo ' test Run tests in silent mode'
|
@echo ' test Run tests in silent mode'
|
||||||
@echo ' test-verbose Run tests in verbose mode'
|
@echo ' test-verbose Run tests in verbose mode'
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
"depd": "./lib/browser.depd.js"
|
"depd": "./lib/browser.depd.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"clean": "make clean",
|
||||||
"help": "make help",
|
"help": "make help",
|
||||||
"test": "make test"
|
"test": "make test"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue