forked from nicolewhite/algebra.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (17 loc) · 778 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: test
PACKAGE_VERSION=$(shell npm view algebra.js version)
$(info version is $(PACKAGE_VERSION))
test:
./node_modules/.bin/jasmine-node test
bundle:
./node_modules/.bin/browserify algebra.js --standalone algebra > build/algebra-$(PACKAGE_VERSION).js
minify: bundle
./node_modules/.bin/uglifyjs --mangle --beautify ascii_only=true,beautify=false build/algebra-$(PACKAGE_VERSION).js > build/algebra-$(PACKAGE_VERSION).min.js
sync: minify
git checkout gh-pages
cp build/*.min.js javascripts
coveralls:
./node_modules/.bin/istanbul cover ./node_modules/.bin/jasmine-node --captureExceptions test && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
lint:
./node_modules/jshint/bin/jshint algebra.js src/*.js test/*.js