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 60 lines (43 sloc) 1.272 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
# -----------------
# 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 npm-debug.log
# Install
install:
npm install
# Reset
reset:
make clean
make install
# Ensure everything is ready for our tests (used by things like travis)
test-prepare:
rm -Rf test/node_modules test/out test/npm-debug.log
make install
make compile
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.