Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #221 from 3rd-Eden/uglify

Forgot to commit package.json + builder adjustment
  • Loading branch information...
commit f41d213f4d62a2525b77f1e50898deb466c5a5bb 2 parents 665818d + f0ce6e8
Guillermo Rauch authored
11  bin/builder.js
@@ -10,8 +10,7 @@
10 10
 
11 11
 var fs = require('fs')
12 12
   , socket = require('../lib/io')
13  
-  , uglyfyParser = require('../lib/vendor/uglifyjs/lib/parse-js')
14  
-  , uglyfyAst = require('../lib/vendor/uglifyjs/lib/process');
  13
+  , uglify = require('uglify-js');
15 14
 
16 15
 /**
17 16
  * License headers.
@@ -187,11 +186,11 @@ var builder = module.exports = function(){
187 186
       
188 187
       // check if we need to process it any further
189 188
       if (settings.minify){
190  
-        var ast = uglyfyParser.parse(code);
191  
-        ast = uglyfyAst.ast_mangle(ast);
192  
-        ast = uglyfyAst.ast_squeeze(ast);
  189
+        var ast = uglify.parser.parse(code);
  190
+        ast = uglify.uglify.ast_mangle(ast);
  191
+        ast = uglify.uglify.ast_squeeze(ast);
193 192
         
194  
-        code = production + uglyfyAst.gen_code(ast);
  193
+        code = production + uglify.uglify.gen_code(ast);
195 194
       }
196 195
       
197 196
       callback(error, code);
5  package.json
@@ -17,12 +17,15 @@
17 17
         "type": "git"
18 18
       , "url": "https://github.com/LearnBoost/Socket.IO.git"
19 19
     }
  20
+  , "dependencies": {
  21
+        "uglify-js": "1.0.3"
  22
+    }
20 23
   , "devDependencies": {
21 24
         "expresso": "0.7.7"
22 25
       , "express": "2.3.11"
23 26
       , "jade": "0.12.1"
24 27
       , "stylus": "0.13.3"
25  
-      , "socket.io": "0.7.3"
  28
+      , "socket.io": "0.7.6"
26 29
       , "socket.io-client": "0.7.1"
27 30
     }
28 31
   , "engines": { "node": ">= 0.4.0" }

0 notes on commit f41d213

Please sign in to comment.
Something went wrong with that request. Please try again.