UNPKG

domain-context

Version:

Globally accessible domain-bound contexts

36 lines (25 loc) 554 B
BIN = ./node_modules/.bin SRC = $(wildcard src/*.coffee) LIB = $(SRC:src/%.coffee=lib/%.js) build: $(LIB) lib/%.js: src/%.coffee @mkdir -p $(@D) @$(BIN)/coffee -bcp $< > $@ clean: @rm -f $(LIB) install link: @npm $@ test: @$(BIN)/mocha -b -R spec --compilers coffee:coffee-script spec.coffee release-patch: build test @$(call release,patch) release-minor: build test @$(call release,minor) release-major: build test @$(call release,major) publish: git push --tags origin HEAD:master npm publish define release npm version $(1) endef