frac/Makefile

30 lines
569 B
Makefile
Raw Normal View History

2014-05-01 03:21:53 +00:00
LIB=frac
TARGET=$(LIB).js
2014-05-01 02:32:25 +00:00
.PHONY: frac
frac: frac.md
2013-12-14 07:11:37 +00:00
voc frac.md
.PHONY: test
test:
2013-12-14 07:11:37 +00:00
mocha -R spec
2014-05-01 02:32:25 +00:00
.PHONY: lint
lint:
jshint --show-non-errors frac.js
.PHONY: cov
cov: coverage.html
coverage.html: frac
mocha --require blanket -R html-cov > coverage.html
.PHONY: coveralls
coveralls:
mocha --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
2014-05-01 03:21:53 +00:00
.PHONY: dist
dist: $(TARGET)
cp $(TARGET) dist/
cp LICENSE dist/
uglifyjs $(TARGET) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 frac.js)"