mirror of
https://github.com/chaijs/chai
synced 2024-11-15 16:18:02 +00:00
29 lines
No EOL
456 B
Makefile
29 lines
No EOL
456 B
Makefile
|
|
TESTS = test/*.js
|
|
REPORTER = dot
|
|
SRC = $(shell find lib -name "*.js" -type f)
|
|
|
|
all: chai.js
|
|
|
|
chai.js: $(SRC)
|
|
@node support/compile $^
|
|
|
|
clean:
|
|
rm -f chai.js
|
|
|
|
docs: clean-docs
|
|
@./node_modules/.bin/codex build docs \
|
|
--out docs/out
|
|
@./node_modules/.bin/codex serve \
|
|
--out docs/out
|
|
|
|
clean-docs:
|
|
@rm -rf docs/out
|
|
|
|
test:
|
|
@NODE_ENV=test ./node_modules/.bin/mocha \
|
|
--reporter $(REPORTER) \
|
|
--ui tdd \
|
|
$(TESTS)
|
|
|
|
.PHONY: clean test docs clean-docs |