Skip to content

Instantly share code, notes, and snippets.

@tarqd
Forked from andreypopp/gist:5588256
Last active August 29, 2015 14:19
Show Gist options
  • Save tarqd/27c29766516322d1e967 to your computer and use it in GitHub Desktop.
Save tarqd/27c29766516322d1e967 to your computer and use it in GitHub Desktop.
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 $< > $@
test: build
@$(BIN)/mocha -b specs
clean:
@rm -f $(LIB)
install link:
@npm $@
release-patch: build test
@npm version patch
release-minor: build test
@npm version minor
release-major: build test
@npm version major
publish:
git push --tags origin HEAD:master
npm publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment