-
-
Save tarqd/27c29766516322d1e967 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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