mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
29 lines
450 B
Makefile
29 lines
450 B
Makefile
.SILENT:
|
|
.PHONY: deploy docs read-docs test build watch
|
|
|
|
BIN = ./node_modules/.bin
|
|
|
|
REPORTER = spec
|
|
TESTS = ./test/**/*.test.coffee
|
|
SOURCES = ./*.coffee ./lib/**/*.coffee
|
|
|
|
deploy:
|
|
git push heroku master
|
|
|
|
docs:
|
|
$(BIN)/docco $(shell find $(SOURCES))
|
|
|
|
read-docs:
|
|
open docs/app.html
|
|
|
|
test:
|
|
NODE_ENV=test $(BIN)/mocha \
|
|
--reporter $(REPORTER) \
|
|
$(shell find $(TESTS))
|
|
|
|
build:
|
|
$(BIN)/coffee -c $(SOURCES)
|
|
|
|
watch:
|
|
$(BIN)/coffee -cw $(SOURCES)
|