Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (28 sloc) 1.011 kb
#---- Tools
TAP := ./node_modules/.bin/tap
#---- Files
JSSTYLE_FILES := $(shell find lib test tools -name *.js)
#---- Targets
# Ensure all version-carrying files have the same version.
.PHONY: versioncheck
[[ `cat package.json | json version` == `grep '^var VERSION' bin/bunyan | awk -F'"' '{print $$2}'` ]]
[[ `cat package.json | json version` == `grep '^var VERSION' lib/bunyan.js | awk -F'"' '{print $$2}'` ]]
@echo Version check ok.
.PHONY: cutarelease
cutarelease: versioncheck
[[ ! -d tmp ]] # No 'tmp/' allowed:
./tools/ -p bunyan -f package.json -f lib/bunyan.js -f bin/bunyan
.PHONY: test
test: $(TAP)
TAP=1 $(TAP) test/*.test.js
.PHONY: check-jsstyle
check-jsstyle: $(JSSTYLE_FILES)
./tools/jsstyle -o indent=2,doxygen,unparenthesized-return=0,blank-after-start-comment=0 $(JSSTYLE_FILES)
.PHONY: check
check: check-jsstyle
@echo "Check ok."
.PHONY: prepush
prepush: check test
@echo "Okay to push."
Jump to Line
Something went wrong with that request. Please try again.