twitter / hogan.js

A compiler for the Mustache templating language
http://twitter.github.io/hogan.js
Apache License 2.0
5.14k stars 431 forks source link

updated tools/release.js to use uglify-js 2.x #178

Closed coh516 closed 10 years ago

coh516 commented 10 years ago

Added some slight updates to the tools/release.js.

Updated the uglify(src,dst) function to use uglify-js 2.x's simpler api, using the minify function for parsing, compressing, and generating output code. There might be some reason why uglify-js 1.x is being used, but because the last update was 2 years ago, I just assumed it needed some love.

Also changed the file read of package.json to be looked for in the root, to be consistent with the rest of the file reads, as well as to build the bundled files on a Windows machine where one might not have access to make, figuring they are running node release.js from the tools directory (It also requires the creation of a dist directory, but that can be done manually.)

sayrer commented 10 years ago

thanks!

coh516 commented 10 years ago

my pleasure