Stan Angeloff
a9e264dd84
console.{log,warn} → print{Line,Warn}
2010-11-28 16:04:52 +02:00
Jeremy Ashkenas
eb3a32e853
fixing coffee -s ... (jannehietamaki)
2010-11-08 21:58:13 -05:00
Jeremy Ashkenas
f6a8d4c074
round 2, light refactors.
2010-11-04 23:05:04 -04:00
Jeremy Ashkenas
67f1e04f3b
merging in Trevor's --no-wrap deprecation
2010-11-01 20:57:43 -04:00
Jeremy Ashkenas
a4be3bceec
Merge branch 'master' of git://github.com/TrevorBurnham/coffee-script
2010-11-01 20:53:49 -04:00
Jeremy Ashkenas
195ca70278
tweaks to eval-fix
2010-10-30 17:35:54 -04:00
Trevor Burnham
776b1b723e
Fixing --eval; see issue 820
2010-10-28 22:18:11 -04:00
Trevor Burnham
baef719908
Accepting --no-wrap, with a warning
2010-10-28 12:22:33 -04:00
Jeremy Ashkenas
c2da8c2d54
Removing extraneous semicolon, adding back in final break -- src now lints cleanly.
2010-10-24 20:51:55 -04:00
Jeremy Ashkenas
6347849cd0
Switching parenthesized side in comprehensions.
2010-10-24 14:11:09 -04:00
Jeremy Ashkenas
26a115adcf
Removing the mixed-in sys/util module. Switching from 'puts' to console.log
2010-10-24 12:48:42 -04:00
Stéphan Kochen
c458346593
In compileScripts, run base through path.join.
...
Allows `path.join` to do some processing on the base path
that was also happening on the full path.
Fixes: `coffee -o ./ ./`
Still broken: `coffee -o . .`
2010-10-19 18:36:27 +02:00
Stéphan Kochen
e5dfa19ec9
Report errors when writing files in coffee.
2010-10-19 18:30:29 +02:00
satyr
88cc1ee35d
765: -b/--bare <- --no-wrap
2010-10-14 04:09:56 +09:00
satyr
1d4d7e96fa
quit using sp?licing ranges
2010-10-13 05:47:45 +09:00
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