Jeremy Ashkenas
e227a3bc69
fixing relative path for execution tests
2009-12-28 16:23:48 -05:00
tlrobinson
350cb623ae
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
5a49c22121
Fixed Narwhal integration. Cleaned up module organization, etc.
2009-12-28 01:16:57 -08:00
Jeremy Ashkenas
835db4b279
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
60342e8cd9
changed bin/coffee-script to bin/coffee
2009-12-26 08:57:13 -08:00
Jeremy Ashkenas
cf46fa8c2c
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
16ca3d1608
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
03a90928e1
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
3eedd5bb50
better error warnings on the command line
2009-12-25 00:02:27 -08:00
Jeremy Ashkenas
5b7e695f6c
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
9047c87567
the --no-wrap option now disables top-level var declarations
2009-12-24 17:37:24 -08:00
Jeremy Ashkenas
4112595368
removing the special-case std-reading in favor of '--eval'
2009-12-24 15:49:42 -08:00
Jeremy Ashkenas
c281db7730
document that -e can read from stdin
2009-12-24 15:35:58 -08:00
Jeremy Ashkenas
5e6b49ad1e
with a working -n --no-wrap option to disable the top-level function safety wrapper
2009-12-24 15:31:00 -08:00
tlrobinson
ad0735f765
Read from stdin if source is "-"
2009-12-24 14:40:39 -08:00
Jeremy Ashkenas
b8f563d49e
first draft of docs are done
2009-12-23 23:01:39 -08:00
Jeremy Ashkenas
3b3d57e84a
waypoint
2009-12-24 01:22:41 -05:00
Jeremy Ashkenas
777eac045a
broken waypoint, but fixed line numbers with the new JS comments
2009-12-23 19:42:18 -05:00
Jeremy Ashkenas
4e3d7cb974
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
d86f92c6f2
added full complement of bitwise operators
2009-12-19 22:55:58 -05:00
Jeremy Ashkenas
7474ed1a5e
added the verbose option to the CLI
2009-12-19 00:37:54 -05:00
Jeremy Ashkenas
581ad8ba1e
commented the command-line interface
2009-12-17 21:57:21 -05:00
Jeremy Ashkenas
5703c1ed6d
moved the TextMate bundle into the gem, added a command to install it
2009-12-17 21:46:12 -05:00
Jeremy Ashkenas
955d01a302
added a nice --watch mode to continually recompile or relint (or reprint) your coffeescripts
2009-12-17 20:37:39 -05:00
Jeremy Ashkenas
9f33cf19ad
added nice syntax errors
2009-12-17 10:04:43 -05:00
Jeremy Ashkenas
2d65d3d73b
multiline strings
2009-12-17 08:23:07 -05:00
Jeremy Ashkenas
fd63698005
completely reorganized for a gem and the 'coffee-script' command
2009-12-16 22:42:53 -05:00