Created
August 6, 2014 10:52
-
-
Save creativ/2b7720689fcde81ba3db to your computer and use it in GitHub Desktop.
Simple Makefile for CoffeeScript projects
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
COFFEEC = ./node_modules/.bin/coffee | |
DIST = dist | |
CONF = src/conf | |
all: build_dev build_prod | |
build_dev: | |
@$(COFFEEC) --join $(DIST)/lib-dev.js --compile src/lib.coffee $(CONF)/conf-dev.coffee | |
@echo 'Lib(Dev) successfully builded' | |
build_prod: | |
@$(COFFEEC) --join $(DIST)/lib.js --compile src/lib.coffee $(CONF)/conf-prod.coffee | |
@echo 'Lib successfully builded' | |
watch: | |
@$(COFFEEC) --watch --join $(DIST)/lib-dev.js --compile src/lib.coffee $(CONF)/conf-dev.coffee | |
clean: | |
@rm -rf $(DIST) | |
.PHONY: all build_dev build_prod watch clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment