jingle-session
Version:
... TODO: creating examples
42 lines (26 loc) • 796 B
Plain Text
NAME = jinglemedia
STANDALONE = JingleMediaSession
MAIN = index.js
SHELL = /bin/bash
PATH := ./node_modules/.bin:$(PATH)
LIB = $(shell find lib -name '*.js')
# -- Tasks ------------------------------------------------------------
all: test build audit
build: build/$(NAME).zip
clean:
rm -rf build
test: lint
covert test/index.js | tap-spec
lint:
jshint .
audit:
nsp package
# -- Build artifacts --------------------------------------------------
build/$(NAME).zip: build/$(NAME).bundle.js build/$(NAME).bundle.min.js
zip -j $@ $^
build/$(NAME).bundle.js: $(MAIN) $(LIB)
mkdir -p build
browserify --standalone $(STANDALONE) $(MAIN) > $@
build/$(NAME).bundle.min.js: build/$(NAME).bundle.js
uglifyjs --screw-ie8 build/$(NAME).bundle.js > $@