Skip to content

Instantly share code, notes, and snippets.

@lupomontero
Created December 23, 2011 16:49
Show Gist options
  • Save lupomontero/1514723 to your computer and use it in GitHub Desktop.
Save lupomontero/1514723 to your computer and use it in GitHub Desktop.
VOWS=./node_modules/vows/bin/vows
DOCCO=./node_modules/docco/bin/docco
JSLINT=./node_modules/jslint/bin/jslint.js
.PHONY: all
all: jslint runtests docs
jslint:
@echo "\nRunning jslint..."
@find ./lib -name "*.js" -print0 | xargs -0 ${JSLINT}
runtests:
@echo "Running tests..."
@find ./test -name "*.js" -print0 | xargs -0 ${VOWS} --spec
docs: clean
@echo "\nRunning docco..."
@find ./lib -name "*.js" -print0 | xargs -0 ${DOCCO}
clean:
@rm -f docs/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment