Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 5 commits
  • 16 files changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 27, 2009
@jashkenas more underscore, and removing custom_assign and return from condition…
…al compilation
575dc7d
@jashkenas more underscore and bugfix edits to code generation 5427269
@jashkenas more underscore examples f89c864
@jashkenas fixing paths for running
coffee compiles CoffeeScript source files into JavaScript.

Usage:
  coffee path/to/script.coffee
    -i, --interactive                run a CoffeeScript REPL (requires Narwhal)
    -r, --run                        compile and run a script (requires Narwhal)
    -o, --output [DIR]               set the directory for compiled JavaScript
    -w, --watch                      watch scripts for changes, and recompile
    -p, --print                      print the compiled JavaScript to stdout
    -l, --lint                       pipe the compiled JavaScript through JSLint
    -e, --eval                       compile a cli scriptlet or read from stdin
    -t, --tokens                     print the tokens that the lexer produces
    -v, --verbose                    print at every step of code generation
    -n, --no-wrap                    raw output, no safety wrapper or vars
        --install-bundle             install the CoffeeScript TextMate bundle
        --version                    display CoffeeScript version
    -h, --help                       display this help message outside of the coffee-script directory
835db4b
@jashkenas CoffeeScript 0.1.6 -- bugfixes 8fe6fa1
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'coffee-script'
- s.version = '0.1.5' # Keep version in sync with coffee-script.rb
- s.date = '2009-12-26'
+ s.version = '0.1.6' # Keep version in sync with coffee-script.rb
+ s.date = '2009-12-27'
s.homepage = "http://jashkenas.github.com/coffee-script/"
s.summary = "The CoffeeScript Compiler"
@@ -471,6 +471,13 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre>
<h2 id="change_log">Change Log</h2>
<p>
+ <b class="header" style="margin-top: 20px;">0.1.6</b>
+ Bugfix for running <tt>coffee --interactive</tt> and <tt>--run</tt>
+ from outside of the CoffeeScript directory. Bugfix for nested
+ function/if-statements.
+ </p>
+
+ <p>
<b class="header" style="margin-top: 20px;">0.1.5</b>
Array slice literals and array comprehensions can now both take Ruby-style
ranges to specify the start and end. JavaScript variable declaration is
@@ -4,8 +4,7 @@
change_numbers = function() {
var new_num;
num = 2;
- new_num = 3;
- return new_num;
+ return (new_num = 3);
};
new_num = change_numbers();
})();
@@ -6,8 +6,7 @@
return alert(this.name + " moved " + meters + "m.");
};
Snake = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Snake.__superClass__ = Animal.prototype;
Snake.prototype = new Animal();
@@ -17,8 +16,7 @@
return Snake.__superClass__.move.call(this, 5);
};
Horse = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Horse.__superClass__ = Animal.prototype;
Horse.prototype = new Animal();
Oops, something went wrong.

No commit comments for this range