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
9447796d8e
made unless less parenfull
2010-10-07 20:05:22 +09:00
satyr
95bc4c5eeb
reenabled stricter caching on For compilation as well as reduced a line from it
2010-10-07 12:31:05 +09:00
Jeremy Ashkenas
13774cf48a
empty returns no longer return null
2010-10-06 22:24:52 -04:00
Jeremy Ashkenas
d4dac214ab
optimizing comprehensions source references
2010-10-06 21:13:11 -04:00
satyr
cdd033ffb0
disabled interpolations in normal regexes
2010-10-04 21:51:04 +09:00
Jeremy Ashkenas
26de26f88f
conditionals with no alternative now evaluate to 'undefined' instead of 'null'
2010-10-01 20:52:23 -04:00
satyr
2ea549ce5f
made ForNode avoid needless cachings
2010-10-02 07:26:37 +09:00
satyr
341f511bbd
#733 : streamlined soak compilations and improved reference cachings
2010-10-02 07:17:35 +09:00
satyr
7450df8104
#713 : destructuring assignment is no longer statement and correctly returns RHS value
2010-09-29 05:47:12 +09:00
Jeremy Ashkenas
bd08d06de3
Merge branch 'unary-new' of http://github.com/satyr/coffee-script
2010-09-27 22:52:40 -04:00
satyr
bc87d9ed3d
made --nodes output prettier
2010-09-27 04:47:52 +09:00
satyr
db531495b8
unary-new: merged master
2010-09-27 01:22:33 +09:00
satyr
c24e1eacb9
(experimental) made new a unary operator
2010-09-25 17:39:19 +09:00
satyr
e0ed254252
helpers: now directly exported
2010-09-25 09:29:44 +09:00
Jeremy Ashkenas
c435647589
removing the ability to force an if/else chain to be compiled as a statement. Ternaries will now be used as much as possible.
2010-09-22 00:41:17 -04:00
Jeremy Ashkenas
7e5db250d3
Merge branch 'master' of git://github.com/StanAngeloff/coffee-script
2010-09-21 08:06:12 -04:00
satyr
b19c004680
made wrapper function keep current this
2010-09-21 16:53:58 +09:00
Stan Angeloff
992f4192bf
Re-compiling core with new temporary variable names, all tests pass.
2010-09-21 07:55:08 +03:00
Jeremy Ashkenas
a16594ed7b
Merging in Stan's temporary_junk improvements.
2010-09-20 22:13:08 -04:00
Jeremy Ashkenas
f7fce3cd68
tweaking compiled tempvar names to satisfaction.
2010-09-20 21:56:18 -04:00
Stan Angeloff
99a06ce4ea
Updating name for cached length temporary variables to '_length', 'length2', and
...
so on.
2010-09-20 08:42:31 +03:00
Stan Angeloff
31441868e0
Allowing temporary variables to be reused.
2010-09-19 19:34:27 +03:00
Stan Angeloff
bb35b3e3b2
Re-compiling core with new changes. All tests pass.
2010-09-19 15:29:15 +03: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
Jeremy Ashkenas
117204a784
Revert "Issue #619 . 'new' operator misbehavior."
...
This reverts commit e7834de929 .
2010-08-21 19:16:02 -04:00
Jeremy Ashkenas
e7834de929
Issue #619 . 'new' operator misbehavior.
2010-08-21 18:54:24 -04: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
975b82f09b
Issue #609 . Slightly faster implementation of ||= and &&=
2010-08-14 18:02:07 -04:00
Jeremy Ashkenas
9894eeb8e9
Improving double-parentheses suppression. Issue #587
2010-08-14 17:43:58 -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
b902377304
Fixing Issue #589 . Compound assignment to an operation should have lower precedence.
2010-08-08 00:07:00 -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
dc1288d319
slightly optimizing return values of AssignNodes. Issue #539
2010-07-24 12:27:11 -07:00
Jeremy Ashkenas
3b6f020f8a
Making the spacing of symbols on function declaration consistent. No-space when single-line. Spaced when block. (StanAngeloff)
2010-07-24 08:31:43 -07:00
Jeremy Ashkenas
d017a8f9f7
Moving from '.addListener' to '.on' for Node v0.1.101
2010-07-18 07:54:44 -04:00