Skip to content
Browse files

v2.1.0. Improvement.

  • Loading branch information...
1 parent 1b6e898 commit 88e1eee0407c9419b7f5e80e0a6cc3fb448f3bef @balupton balupton committed
Showing with 77 additions and 6 deletions.
  1. +19 −0 .gitignore
  2. +1 −1 History.md
  3. +56 −4 Makefile
  4. +1 −1 package.json
View
19 .gitignore
@@ -0,0 +1,19 @@
+lib-cov
+*.seed
+*.log
+*.csv
+*.dat
+*.out
+*.pid
+*.gz
+
+pids
+logs
+results
+
+node_modules
+npm-debug.log
+
+test/out/
+test/render-out/
+out/
View
2 History.md
@@ -1,6 +1,6 @@
## History
-- v2.1.0 November 6, 2012
+- v2.1.0 November 17, 2012
- Added support for partials
- v2.0.1 August 10, 2012
View
60 Makefile
@@ -1,9 +1,61 @@
-# If you change something here, be sure to change it in package.json's scripts as well
+# 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:
- ./node_modules/.bin/coffee -w -o out/ -c src/
+ $(COFFEE) -cbwo $(OUT) $(SRC)
+# Compile our files
compile:
- ./node_modules/.bin/coffee -o out/ -c src/
+ $(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
+
-.PHONY: dev compile
+# Ensure the listed commands always re-run and are never cached
+.PHONY: dev compile clean install reset test-prepare test
View
2 package.json
@@ -33,7 +33,7 @@
"handlebars": "1.0.x"
},
"devDependencies": {
- "coffee-script": "1.3.x"
+ "coffee-script": "1.4.x"
},
"engines" : {
"node": ">=0.4.0",

0 comments on commit 88e1eee

Please sign in to comment.
Something went wrong with that request. Please try again.