1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
Commit graph

36 commits

Author SHA1 Message Date
Jeremy Ashkenas
872b36c11d things are in motion -- bin/node_coffee is the new JS-only command line ... it can pass some of the tests 2010-02-11 01:57:33 -05:00
Jeremy Ashkenas
7ec0a8d653 merging node into master -- you can now pass the --narwhal flag to use narwhal instead. All tests are executing successfully against both Node.js and Narwhal/Rhino backends 2010-02-07 12:52:07 -05:00
Jeremy Ashkenas
f5a37035cf node conversion finished, narwhal removed. 2010-01-29 23:30:54 -05:00
Jeremy Ashkenas
e08e99a403 implementing the Node REPL. 2010-01-29 22:53:44 -05:00
Jeremy Ashkenas
ba2d9df25f first draft of node.js REPL 2010-01-29 22:51:51 -05:00
Jeremy Ashkenas
8efcaf6eec moved CoffeeScript.tmbundle to extras and rewrote the installation instructions in plain text 2010-01-25 22:22:39 -05:00
Jeremy Ashkenas
d6e206b420 adding line number info to unclosed parens, objects, arrays, and indents 2010-01-25 21:07:18 -05:00
Jeremy Ashkenas
d416c184db separating out the --no-wrap and the --globals arguments, which shouldn't be jammed together 2010-01-07 21:10:25 -05:00
Jeremy Ashkenas
a5c1922200 printing a warning when the parser goes missing 2010-01-06 22:41:09 -05:00
Jeremy Ashkenas
c84bb0c875 fixing relative path for execution tests 2009-12-28 16:23:48 -05:00
tlrobinson
a722b42eed Add package on command line in case it's not installed in a Narwhal packages path. 2009-12-28 01:49:07 -08:00
tlrobinson
55616cf3b8 Fixed Narwhal integration. Cleaned up module organization, etc. 2009-12-28 01:16:57 -08:00
Jeremy Ashkenas
7ae8687a3e 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
2009-12-27 12:43:05 -08:00
Jeremy Ashkenas
3c67d54bbe changed bin/coffee-script to bin/coffee 2009-12-26 08:57:13 -08:00
Jeremy Ashkenas
7c132d65dc started raising syntax errors for parens wrapped around expressions (they used to silently be ignored) 2009-12-25 20:36:22 -08:00
Jeremy Ashkenas
b58102c514 don't add the no_wrap key to the options hash unless we're going to use it 2009-12-25 19:48:47 -08:00
Jeremy Ashkenas
d46bf8ee71 moved the coffeescript extension over from .cs to .coffee -- let's leave C# in peace. Changed array comprehensions to always return their mapped result, even when unassigned 2009-12-25 14:18:05 -08:00
Jeremy Ashkenas
e7e8e243a2 better error warnings on the command line 2009-12-25 00:02:27 -08:00
Jeremy Ashkenas
73aaf127c8 removed bin/cs in favor of a more comprehensive coffee-script command ... now with --interactive and --run 2009-12-24 23:57:27 -08:00
Jeremy Ashkenas
9b2326492b the --no-wrap option now disables top-level var declarations 2009-12-24 17:37:24 -08:00
Jeremy Ashkenas
a80b532a05 removing the special-case std-reading in favor of '--eval' 2009-12-24 15:49:42 -08:00
Jeremy Ashkenas
42ca566d26 document that -e can read from stdin 2009-12-24 15:35:58 -08:00
Jeremy Ashkenas
e27756cee8 with a working -n --no-wrap option to disable the top-level function safety wrapper 2009-12-24 15:31:00 -08:00
tlrobinson
08248180f9 Read from stdin if source is "-" 2009-12-24 14:40:39 -08:00
Jeremy Ashkenas
705b293982 first draft of docs are done 2009-12-23 23:01:39 -08:00
Jeremy Ashkenas
0a58eeef2b waypoint 2009-12-24 01:22:41 -05:00
Jeremy Ashkenas
60eabf63cf broken waypoint, but fixed line numbers with the new JS comments 2009-12-23 19:42:18 -05:00
Jeremy Ashkenas
9bb3e3fbe8 clean up children at exit -- had about twenty processes all watching and recompiling the docs 2009-12-21 12:15:13 -05:00
Jeremy Ashkenas
93bdfcb72a added full complement of bitwise operators 2009-12-19 22:55:58 -05:00
Jeremy Ashkenas
0b2e7f1e59 added the verbose option to the CLI 2009-12-19 00:37:54 -05:00
Jeremy Ashkenas
8511a33b1e commented the command-line interface 2009-12-17 21:57:21 -05:00
Jeremy Ashkenas
6050cad0f8 moved the TextMate bundle into the gem, added a command to install it 2009-12-17 21:46:12 -05:00
Jeremy Ashkenas
398251ff90 added a nice --watch mode to continually recompile or relint (or reprint) your coffeescripts 2009-12-17 20:37:39 -05:00
Jeremy Ashkenas
1eec05d23a added nice syntax errors 2009-12-17 10:04:43 -05:00
Jeremy Ashkenas
d1682f5b3f multiline strings 2009-12-17 08:23:07 -05:00
Jeremy Ashkenas
290aa257de completely reorganized for a gem and the 'coffee-script' command 2009-12-16 22:42:53 -05:00