Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
Enable source maps for CoffeeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Apr 24, 2013
1 parent 10e9bc7 commit 3ed1cbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ coffeeLintConfig =
task 'build', 'Compiles and minifies JavaScript file for production use', ->
console.log "Compiling CoffeeScript".yellow
# Compile test scripts for consistency
exec "coffee --compile --bare --output #{paths.testLibDir} #{paths.testDir}"
exec "coffee --compile --bare --output #{paths.libDir} #{paths.srcDir}", (e, o, se) ->
exec "coffee --map --compile --bare --output #{paths.testLibDir} #{paths.testDir}"
exec "coffee --map --compile --bare --output #{paths.libDir} #{paths.srcDir}", (e, o, se) ->
if e
console.error "Error encountered while compiling CoffeeScript".red
console.error se
Expand Down Expand Up @@ -132,7 +132,7 @@ task 'build', 'Compiles and minifies JavaScript file for production use', ->

task 'watch', 'Automatically recompile CoffeeScript files to JavaScript', ->
console.log "Watching coffee files for changes, press Control-C to quit".yellow
srcWatcher = exec "coffee --compile --bare --watch --output #{paths.libDir} #{paths.srcDir}"
srcWatcher = exec "coffee --compile --bare --watch --map --output #{paths.libDir} #{paths.srcDir}"
srcWatcher.stderr.on 'data', (data) -> console.error stripEndline(data).red
srcWatcher.stdout.on 'data', (data) ->
# Hacky way to find if something compiled successfully
Expand Down

0 comments on commit 3ed1cbb

Please sign in to comment.