hostmeta
Version:
Easily retrieve and parse a host's .well-known/host-meta file
42 lines (25 loc) • 787 B
Plain Text
include node_modules/make-better/core.inc
NAME = hostmeta
STANDALONE = getHostMeta
MAIN = index.js
LIB = $(call find_recursive,lib,*.js)
# -- Tasks ------------------------------------------------------------
all: test build audit
build: build/$(NAME).zip
clean:
rm -rf build
test: lint
node 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 --full-paths --standalone $(STANDALONE) $(MAIN) > $@
build/$(NAME).bundle.min.js: build/$(NAME).bundle.js
uglifyjs --screw-ie8 build/$(NAME).bundle.js > $@