Sam Stephenson
6e6165796c
noWrap: true -> wrap: false
2010-10-10 11:55:01 -04:00
satyr
bc87d9ed3d
made --nodes output prettier
2010-09-27 04:47:52 +09:00
satyr
e0ed254252
helpers: now directly exported
2010-09-25 09:29:44 +09:00
Jeremy Ashkenas
df414dab02
Issue #665 . Recompile on --watch when file changes size, or mtime changes.
2010-09-08 21:08:17 -04:00
Jeremy Ashkenas
904207ba8f
throwing errs from fs.readFile in watch mode.
2010-09-08 20:55:34 -04:00
Chris Lloyd
cd67ec6e69
Bad variable name clobbers correct path in compile event.
2010-09-08 14:51:59 +02:00
Stan Angeloff
01cd5476a0
'-r' should work with $NODE_PATH as well (where previously it was an absolute/relative path)
2010-08-16 17:36:55 +03:00
Jeremy Ashkenas
197f576cab
Merged in Stan's patch that allows -r scripts to modify input and output.
2010-08-15 08:32:09 -04:00
Jeremy Ashkenas
0b8facc66f
Merge branch 'master' of git://github.com/StanAngeloff/coffee-script
2010-08-15 08:20:50 -04:00
Jeremy Ashkenas
6555d86328
Adding a jsl.conf configuration file for JavaScript lint, and switching to == null for soaks, accordingly.
2010-08-14 16:02:01 -04:00
Stan Angeloff
d30c8b321c
Allow required files to change the input and output of compiled files.
2010-08-13 01:28:38 +03:00
Jeremy Ashkenas
a749d43897
Use fs.realpathSync instead of something hacky.
2010-08-08 10:05:44 -04:00
Jeremy Ashkenas
08506f160d
Adding CoffeeScript as a globally-available object, when invoked from the coffee command-line, only.
2010-08-08 09:54:45 -04:00
Jeremy Ashkenas
1c903450c8
Merging in Stan's patch for a --require flag that allows you to hook into CoffeeScript compiler events for on 'compile', 'success', and 'failure' ... a better way to extend the language or do growlnotify stuff. Issue #590
2010-08-07 23:33:35 -04:00
Stan Angeloff
b1b78dca47
Add command-line compiler hooks. To invoke, pass a file after -r and listen for any of these events: 'compile', 'success' and 'exception'. Example:
...
coffee -e -r ./snarl 'Hello!'
Contents of 'snarl.coffee' in the working directory:
http = require 'http'
CoffeeScript.on 'exception', (err) ->
client = http.createClient 9889, 'localhost'
request = client.request 'GET', '/?d={"action":1,"applicationName":"CoffeeScript","title":' + JSON.stringify(err.message) + ',"description":' + JSON.stringify(err.stack) + ',"priority":3}'
request.end()
err.handled = yes
To examine arguments available for each event (for debugging and getting started), use `puts JSON.stringify arguments`.
See http://nodejs.org/api.html#modules-309 and NODE_PATH for more details on how -r looks for files.
2010-08-07 20:24:37 +03:00
Jeremy Ashkenas
9df3e6a538
first step towards requiring #{ ... } interpolation -- removing naked interps from the compiler.
2010-08-07 08:02:16 -04:00
Jeremy Ashkenas
b1f7d5e33b
compile empty coffee files to js anyway.
2010-08-04 23:42:46 -04:00
Jeremy Ashkenas
5f2326e911
fixing Issue #569 . Compiling empty source files to disk with --no-wrap on.
2010-08-04 21:36:03 -04:00
Jeremy Ashkenas
071b527b66
Issue #559 , renaming {source} option to {fileName}, on CoffeeScript.compile
2010-07-30 20:37:12 -04:00
Jeremy Ashkenas
b18d7fb550
removing the last traces of half-assignments. Issue #541 .
2010-07-29 21:23:49 -04:00
Jeremy Ashkenas
b4ef4a9e28
make the compiler use 'obj = or default' for default values.
2010-07-26 23:58:06 -04:00
Jeremy Ashkenas
d624310be1
waypoint commit with both # and $ performing interpolation. Issue #544
2010-07-26 23:08:09 -04:00
Jeremy Ashkenas
f9dff6ffc4
added and= and or= to the language.
2010-07-24 22:36:50 -07:00
Jeremy Ashkenas
88847df70b
tests are now passing on symbology
2010-07-24 22:23:37 -07:00
Jeremy Ashkenas
bfc7704ca1
first bit of equals for symbology ... barely started on lexer.coffee
2010-07-24 00:31:04 -07:00
Jeremy Ashkenas
d017a8f9f7
Moving from '.addListener' to '.on' for Node v0.1.101
2010-07-18 07:54:44 -04:00
Jeremy Ashkenas
cc827b139d
Turning --compile on when --output is set, because it's probably what was intended.
2010-07-13 21:04:32 -04:00
Jeremy Ashkenas
2a7a26482a
fixing optparse to behave nicely in the presence of hashbangs -- stop parsing after the first non-option argument, and pass the rest along -- and adding an OptionParser test.
2010-07-11 09:57:42 -04:00
Jeremy Ashkenas
3d6cdfa636
making it possible to pass in command-line arguments to a hash-banged coffee script. Ticket #473
2010-07-10 15:36:54 -04:00
Jeremy Ashkenas
1f7af35368
getting ready for a 0.7.0. cleanups and doc revisions, not quite there yet.
2010-06-28 00:19:58 -04:00
Jeremy Ashkenas
9aaf789c21
changing a couple repetitions to DRY objects ... doesn't change the compiled output.
2010-06-20 11:19:50 -04:00
Jeremy Ashkenas
4ecb1bb2ed
switching to 'Compiled' messages after the code has finished compiling on --watch ...
2010-06-13 14:21:02 -04:00
Jeremy Ashkenas
e14f4c5db1
First draft of switching the CoffeeScript Compiler over to camelCase. Pour one on the ground for underscores...
2010-06-12 19:05:13 -04:00
Jeremy Ashkenas
a133e018cc
Making the REPL the default behaviour of 'coffee', when called with no arguments, a-la Node and Python.
2010-06-12 11:09:30 -04:00
Jeremy Ashkenas
59de6b505a
ahh, finally. switched up our Jison configuration to provide better syntax errors. Now you get the unexpected token, instead of the expected one.
2010-06-01 20:21:12 -04:00
Jeremy Ashkenas
300c711af1
enabling compilation of non-.coffee-extension files passed directly to the coffee command (Issue #391 )
2010-05-31 15:36:41 -04:00
Jeremy Ashkenas
a8d4c3a567
sprinkling toString() throughout, for Node.js 0.1.95 compatibility.
2010-05-15 00:34:14 -04:00
Jeremy Ashkenas
d64b8fd9d8
merged in Trevor Burnham's recursive coffee compilation, with some adjustments...
2010-05-04 23:22:28 -04:00
Trevor Burnham
fa8cc7976a
Added recursive compilation and monitoring option to coffee command
2010-05-03 17:38:59 -04:00
Jeremy Ashkenas
2d1abd099d
rewriting the Lexer, CommandLine, Nodes, and Rewriter to take advantage of the new DRY object pattern matching.
2010-04-25 22:29:43 -04:00
Jeremy Ashkenas
835ecac8db
simplifying some unecessary interpolated expressions into interpolated values.
2010-04-11 16:57:53 -04:00
Jeremy Ashkenas
8317960f81
Battery of patches for compatibility with Node v0.1.90
2010-04-10 18:05:35 -04:00
Jeremy Ashkenas
16f9a2e6b7
rewriting the compiler to use half-expression assignment
2010-03-21 23:33:24 -04:00
Jeremy Ashkenas
119b80d449
removing fiddling with require.paths from CoffeeScript
2010-03-15 20:39:46 -07:00
Jeremy Ashkenas
299e9918b9
Fixing up command-line args for --stdio and --eval. Now makes more sense with --run by default.
2010-03-08 04:46:24 -05:00
Jeremy Ashkenas
9eceab667c
broke the flag for --no-wrap, fixed.
2010-03-08 04:28:26 -05:00
Jeremy Ashkenas
1cf0326183
unifying the CoffeeScript.compile and CoffeeScript.run apis to be the same -- source code and options hash.
2010-03-07 22:17:45 -05:00
Jeremy Ashkenas
5b9ebd19d5
adding source file information to all coffeescript compiles
2010-03-07 22:08:24 -05:00
Jeremy Ashkenas
06b50ecb98
unifying all of the server-side evaluation under CoffeeScript.run -- this means that __filename and __dirname and relative requires should work from all angles under Node.js
2010-03-07 21:49:08 -05:00
Jeremy Ashkenas
d46daa1d7c
documenting optparse.coffee and repl.coffee
2010-03-07 13:41:15 -05:00