Created
December 27, 2013 17:58
-
-
Save rschooley/8150450 to your computer and use it in GitHub Desktop.
Mafile for node dev, prod, and test (with mocha)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST = $(shell find test -name "*-tests.js") | |
dev: | |
node web.js | |
test: | |
NODE_ENV=test node_modules/mocha/bin/mocha $(TEST) --reporter dot | |
production: | |
NODE_ENV=production node web.js | |
.PHONY: dev test production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment