Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (21 sloc) 0.498 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

TEST = node_modules/.bin/expresso
TESTS ?= test/*.test.js
SRC = $(shell find lib -type f -name "*.js")

test:
@NODE_ENV=test ./$(TEST) \
-I lib \
$(TEST_FLAGS) $(TESTS)

test-cov:
@$(MAKE) test TEST_FLAGS="--cov"

docs:
@mkdir -p docs
@node support/docs.js $(SRC)

docclean:
rm -f docs/*.{html,json}

site: docclean docs
rm -fr /tmp/docs \
&& cp -fr docs /tmp/docs \
&& git checkout gh-pages \
&& cp -fr /tmp/docs/* . \
&& echo "done"

.PHONY: site docs test test-cov docclean
Something went wrong with that request. Please try again.