GT2/GT2-iOS/node_modules/Base64/Makefile

20 lines
335 B
Makefile
Raw Normal View History

2018-02-12 17:26:06 +00:00
.PHONY: bytes clean setup test
bin = node_modules/.bin
base64.min.js: base64.js
@$(bin)/uglifyjs $< --compress --mangle > $@
bytes: base64.min.js
@gzip --best --stdout $< | wc -c | tr -d ' '
clean:
@rm -rf node_modules
@git checkout -- *.min.js
setup:
@npm install
test:
@$(bin)/mocha test --compilers coffee:coffee-script