UNPKG

snippet.js

Version:
42 lines (30 loc) 1.35 kB
all: microify devify minify clean build: @node tasks/build messoify: INPUT_FILE=messo.js FAST_URL=https://fast.trychameleon.com LOGIN_URL=https://prehensile.trychameleon.com TARGET_FILE=messo.tmp.js $(MAKE) build ./node_modules/uglify-js/bin/uglifyjs messo.tmp.js --compress --mangle --stats --output messo.min.js rm messo.tmp.js microify: INPUT_FILE=micro.js FAST_URL=https://fast.trychameleon.com TARGET_FILE=index.js $(MAKE) build devify: INPUT_FILE=micro.js FAST_URL=http://localhost:3278 TARGET_FILE=index.dev.js $(MAKE) build INPUT_FILE=messo.js FAST_URL=http://localhost:3278 LOGIN_URL=http://prehensile.trychameleon.dev TARGET_FILE=messo.dev.js $(MAKE) build minify: ./node_modules/uglify-js/bin/uglifyjs index.js --compress --mangle --stats --output index.min.js release: messoify publish clean publish: @node tasks/publish clean: if [ -e index.js ]; then rm index.js; fi if [ -e messo.min.js ]; then rm messo.min.js; fi spec: if [ -e ./node_modules/.bin/minijasminenode2 ]; then ./node_modules/.bin/minijasminenode2 --verbose --forceexit **/*_spec.js; else printf "\nMini Jasmine not installed @ ./node_modules/.bin/minijasminenode2...\n\nTrying npm install\n\n" && npm install; fi; test: microify spec clean .PHONY: spec .PHONY: test .PHONY: microify .PHONY: messoify .PHONY: devify .PHONY: release .PHONY: publish