-
-
Save rodrigosdo/1b6a894651ab138a3bea to your computer and use it in GitHub Desktop.
This file contains hidden or 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