Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 879918f057
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (38 sloc) 1.133 kB
output ?= './prime.wrup.js'
output_compress ?= './prime.min.js'
amd ?= ''
all: test build build-compress
clean:
rm -rf prime.*.js
rm -rf ./cov*
test: test-node
test-node:
@./node_modules/mocha/bin/mocha --reporter nyan \
./test/es5/* \
./test/util/* \
./test/prime/* \
./test/types/* \
./test/collection/*
build:
@./node_modules/wrapup/bin/wrup.js -r prime ./ > $(output)
@echo "File written to $(output)"
build-compress:
@./node_modules/wrapup/bin/wrup.js -r prime ./ --compress yes > $(output_compress)
@echo "File written to $(output_compress)"
convert-amd:
@bash ./bin/convert-amd.sh $(amd)
docs:
@./node_modules/.bin/procs -f ./doc/prime.md -t ./doc/layout.html
docs-watch:
@./node_modules/.bin/procs -f ./doc/prime.md -t ./doc/layout.html --watch
coverage:
rm -rf ./cov
mkdir ./cov
echo "{}" > ./cov.json
cp -R test cov/test
cp -R node_modules cov/node_modules
cp Makefile cov/Makefile
coverjs --recursive -o cov/ collection/ es5/ prime/ types/ util/ --template node --result ./cov.json
cd cov; make test; cd ..
cat ./cov.json | coverjs-report -r html > cov.html
echo "open cov.html"
Jump to Line
Something went wrong with that request. Please try again.