Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 62 lines (45 sloc) 1.301 kb
# If you change something here, be sure to reflect the changes in:
# - the scripts section of the package.json file
# - the .travis.yml file
# -----------------
# Variables
BIN=node_modules/.bin
COFFEE=$(BIN)/coffee
OUT=out
SRC=src
# -----------------
# Documentation
# Usage: coffee [options] path/to/script.coffee -- [args]
# -b, --bare compile without a top-level function wrapper
# -c, --compile compile to JavaScript and save as .js files
# -o, --output set the output directory for compiled JavaScript
# -w, --watch watch scripts for changes and rerun commands
# -----------------
# Commands
# Watch and recompile our files
dev:
$(COFFEE) -cbwo $(OUT) $(SRC)
# Compile our files
compile:
$(COFFEE) -cbo $(OUT) $(SRC)
# Clean up
clean:
rm -Rf $(OUT) node_modules *.log
# Install dependencies
install:
npm install
# Reset
reset:
make clean
make install
make compile
# Ensure everything is ready for our tests (used by things like travis)
test-prepare:
make reset
rm -Rf test/node_modules test/*out test/*.log
cd test; npm install
# Run our tests
test:
npm test
# Ensure the listed commands always re-run and are never cached
.PHONY: dev compile clean install reset test-prepare test
Jump to Line
Something went wrong with that request. Please try again.