Skip to content

Instantly share code, notes, and snippets.

@terary
Last active January 1, 2019 12:31
Show Gist options
  • Save terary/6f54a250f08d68c59bd33e781a8e7614 to your computer and use it in GitHub Desktop.
Save terary/6f54a250f08d68c59bd33e781a8e7614 to your computer and use it in GitHub Desktop.
New node project helper 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 examples src test test/partials development-working-dir docs docs/release docs/tutorial environment
touch index.js
touch src/index.js
touch environment/index.js
touch environment/developement.js
touch environment/production.js
npm install mocha chai --save-dev
.PHONY: test tap unit jshint skel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment