From 74501f643cd54d7ca2d773ebe88ccd191ec79e14 Mon Sep 17 00:00:00 2001
From: Jeremy Ashkenas
Date: Tue, 8 Nov 2011 18:12:58 -0500
Subject: [PATCH] whoops.
---
index.html | 65 +++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 47 insertions(+), 18 deletions(-)
diff --git a/index.html b/index.html
index 0cf5db48..a5e650fb 100644
--- a/index.html
+++ b/index.html
@@ -93,7 +93,7 @@
CoffeeScript is a little language that compiles into JavaScript. Underneath
- all of those embarrassing braces and semicolons, JavaScript has always had
+ all those awkward braces and semicolons, JavaScript has always had
a gorgeous object model at its heart. CoffeeScript is an attempt to expose
the good parts of JavaScript in a simple way.
@@ -102,8 +102,9 @@
The golden rule of CoffeeScript is: "It's just JavaScript". The code
compiles one-to-one into the equivalent JS, and there is
no interpretation at runtime. You can use any existing JavaScript library
- seamlessly (and vice-versa). The compiled output is readable and pretty-printed,
- passes through JavaScript Lint
+ seamlessly from CoffeeScript (and vice-versa). The compiled output is
+ readable and pretty-printed, passes through
+ JavaScript Lint
without warnings, will work in every JavaScript implementation, and tends
to run as fast or faster than the equivalent handwritten JavaScript.
@@ -300,8 +301,7 @@ sudo bin/cake install
-i, --interactive |
Launch an interactive CoffeeScript session to try short snippets.
- More pleasant if wrapped with
- rlwrap.
+ Identical to calling coffee with no arguments.
|
@@ -322,8 +322,8 @@ sudo bin/cake install
-w, --watch |
- Watch the modification times of the coffee-scripts, recompiling as
- soon as a change occurs.
+ Watch files for changes, rerunning the specified command when any
+ file is updated.
|
@@ -368,8 +368,8 @@ sudo bin/cake install
-b, --bare |
- Compile the JavaScript without the top-level function safety wrapper.
- (Used for CoffeeScript as a Node.js module.)
+ Compile the JavaScript without the
+ top-level function safety wrapper.
|
@@ -410,9 +410,9 @@ Expressions
-
- Compile a directory tree of .coffee files into a parallel
- tree of .js, in lib:
- coffee -o lib/ -c src/
+ Compile a directory tree of .coffee files in src into a parallel
+ tree of .js files in lib:
+ coffee --compile --output lib/ src/
-
Watch a file for changes, and recompile it every time the file is saved:
@@ -426,6 +426,10 @@ Expressions
Print out the compiled JS from a one-liner:
coffee -bpe "alert i for i in [0..10]"
+ -
+ All together now, watch and recompile an entire project as you work on it:
+ coffee -o lib/ -cw src/
+
-
Start the CoffeeScript REPL:
coffee
@@ -2091,8 +2095,18 @@ task('build:parserbest list of
+ open-source CoffeeScript examples can be found on GitHub. But just
+ to throw out few more:
+
+ -
+ github's Hubot,
+ a friendly IRC robot that can perform any number of useful and useless tasks.
+
-
sstephenson's Pow,
a zero-configuration Rack server, with comprehensive annotated source.
@@ -2108,7 +2122,7 @@ task('build:parserZombie.js,
- A headless, full-stack, faux-browser testing library for Node.js.
+ a headless, full-stack, faux-browser testing library for Node.js.
-
jashkenas' Underscore.coffee, a port
@@ -2196,19 +2210,34 @@ task('build:parser
-
-
+ The coffee --watch feature now only works on Node.js 0.6.0
+ and higher, but now also works properly on Windows.
+
+ -
+ Lots of small bug fixes from
+ @michaelficarra,
+ @geraldalewis,
+ @satyr, and
+ @trevorburnham.