Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Last active June 5, 2018 19:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save wolfeidau/8748317 to your computer and use it in GitHub Desktop.
Save wolfeidau/8748317 to your computer and use it in GitHub Desktop.
Standard NodeJS make file.
REPORTER = spec
all: jshint test
test:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --timeout 3000
jshint:
jshint lib examples test index.js
tests: test
tap:
@NODE_ENV=test ./node_modules/.bin/mocha -R tap > results.tap
unit:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive -R xunit > results.xml --timeout 3000
skel:
mkdir -p examples lib test
touch index.js README.md
npm install mocha chai --save-dev
@echo '####################################################'
@echo 'Make sure you choose a license for your software!!!'
@echo '####################################################'
@echo 'Checkout http://choosealicense.com/ for more info'
.PHONY: test tap unit jshint skel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment