@@ -93,7 +93,7 @@
CoffeeScript is a little language that compiles into JavaScript. Underneath
- all those awkward braces and semicolons, JavaScript has always had
+ all of those embarrassing 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,9 +102,8 @@
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 from CoffeeScript (and vice-versa). The compiled output is
- readable and pretty-printed, passes through
-
JavaScript Lint
+ seamlessly (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.
@@ -301,7 +300,8 @@ sudo bin/cake install
-i, --interactive |
Launch an interactive CoffeeScript session to try short snippets.
- Identical to calling coffee with no arguments.
+ More pleasant if wrapped with
+ rlwrap.
|
@@ -322,8 +322,8 @@ sudo bin/cake install
-w, --watch |
- Watch files for changes, rerunning the specified command when any
- file is updated.
+ Watch the modification times of the coffee-scripts, recompiling as
+ soon as a change occurs.
|
@@ -368,8 +368,8 @@ sudo bin/cake install
-b, --bare |
- Compile the JavaScript without the
- top-level function safety wrapper.
+ Compile the JavaScript without the top-level function safety wrapper.
+ (Used for CoffeeScript as a Node.js module.)
|
@@ -410,9 +410,9 @@ Expressions
-
- Compile a directory tree of .coffee files in src into a parallel
- tree of .js files in lib:
- coffee --compile --output lib/ src/
+ Compile a directory tree of .coffee files into a parallel
+ tree of .js, in lib:
+ coffee -o lib/ -c src/
-
Watch a file for changes, and recompile it every time the file is saved:
@@ -426,10 +426,6 @@ 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
@@ -2095,18 +2091,8 @@ 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.
@@ -2122,7 +2108,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
@@ -2195,7 +2181,7 @@ task('build:parser
+
Change Log
@@ -2210,34 +2196,19 @@ 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.
+