Skip to content

Commit

Permalink
Merge pull request jashkenas#2632 from caseywebdev/update-uglify
Browse files Browse the repository at this point in the history
jashkenasgh-2631 Update to uglifyjs's new API
  • Loading branch information
jashkenas committed Nov 29, 2012
2 parents 35787ef + 9e3d431 commit de29613
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Cakefile
Expand Up @@ -113,14 +113,13 @@ task 'build:browser', 'rebuild the merged script for inclusion in the browser',
if (typeof define === 'function' && define.amd) {
define(function() { return CoffeeScript; });
} else {
root.CoffeeScript = CoffeeScript;
} else {
root.CoffeeScript = CoffeeScript;
}
}(this));
"""
unless process.env.MINIFY is 'false'
{parser, uglify} = require 'uglify-js'
code = uglify.gen_code uglify.ast_squeeze uglify.ast_mangle parser.parse code
{code} = require('uglify-js').minify code, fromString: true
fs.writeFileSync 'extras/coffee-script.js', header + '\n' + code
console.log "built ... running browser tests:"
invoke 'test:browser'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"url": "git://github.com/jashkenas/coffee-script.git"
},
"devDependencies": {
"uglify-js": ">=1.0.0",
"uglify-js": "~2.2",
"jison": ">=0.2.0"
}
}

0 comments on commit de29613

Please sign in to comment.