Skip to content

Commit

Permalink
Add uglify toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Qard committed Aug 29, 2011
1 parent e4c97c2 commit ea252e5
Show file tree
Hide file tree
Showing 25 changed files with 5 additions and 5,840 deletions.
9 changes: 5 additions & 4 deletions middleware.coffee
Expand Up @@ -42,10 +42,11 @@ module.exports = (opts, coffee) ->
ctxt = coffee.compile do cdata.toString

# Ugligfy!
ast = jsp.parse ctxt
ast = pro.ast_mangle ast
ast = pro.ast_squeeze ast
ctxt = pro.gen_code ast
if opts.uglify
ast = jsp.parse ctxt
ast = pro.ast_mangle ast
ast = pro.ast_squeeze ast
ctxt = pro.gen_code ast

# Return
end ctxt
Expand Down
1 change: 0 additions & 1 deletion node_modules/.bin/cake

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/coffee

This file was deleted.

11 changes: 0 additions & 11 deletions node_modules/coffee-script/.npmignore

This file was deleted.

22 changes: 0 additions & 22 deletions node_modules/coffee-script/LICENSE

This file was deleted.

48 changes: 0 additions & 48 deletions node_modules/coffee-script/README

This file was deleted.

78 changes: 0 additions & 78 deletions node_modules/coffee-script/Rakefile

This file was deleted.

7 changes: 0 additions & 7 deletions node_modules/coffee-script/bin/cake

This file was deleted.

7 changes: 0 additions & 7 deletions node_modules/coffee-script/bin/coffee

This file was deleted.

44 changes: 0 additions & 44 deletions node_modules/coffee-script/extras/jsl.conf

This file was deleted.

75 changes: 0 additions & 75 deletions node_modules/coffee-script/lib/browser.js

This file was deleted.

76 changes: 0 additions & 76 deletions node_modules/coffee-script/lib/cake.js

This file was deleted.

0 comments on commit ea252e5

Please sign in to comment.