mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
merging in chetan51's Node 0.2.5 compatibility patch. Homebrew timestamps.
This commit is contained in:
parent
f35ea486a7
commit
1f2f55bea3
2 changed files with 5 additions and 3 deletions
|
@ -196,7 +196,7 @@
|
|||
if (err) {
|
||||
return printLine(err.message);
|
||||
} else if (opts.compile && opts.watch) {
|
||||
return console.log("compiled " + source);
|
||||
return console.log("" + ((new Date).toTimeString()) + " - compiled " + source);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -162,8 +162,10 @@ writeJs = (source, js, base) ->
|
|||
compile = ->
|
||||
js = ' ' if js.length <= 0
|
||||
fs.writeFile jsPath, js, (err) ->
|
||||
if err then printLine err.message
|
||||
else if opts.compile and opts.watch then console.log "compiled #{source}"
|
||||
if err
|
||||
printLine err.message
|
||||
else if opts.compile and opts.watch
|
||||
console.log "#{(new Date).toTimeString()} - compiled #{source}"
|
||||
path.exists dir, (exists) ->
|
||||
if exists then compile() else exec "mkdir -p #{dir}", compile
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue