Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jun 8, 2014
Merged

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

merged 2 commits into from Jun 8, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jun 8, 2014

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.)

Seth Tenenbaum added 2 commits June 8, 2014 11:08
changed the package.json to look in the root, as with the rest of the
file reads. changed the uglify function to use uglify.js 2.4.x's simpler
minify api.
updated package.json to use uglifier-js 2.x
@ghost ghost changed the title updated tools/release.js to use uglify 2.4.3 updated tools/release.js to use uglify-js 2.x Jun 8, 2014
sayrer added a commit that referenced this pull request Jun 8, 2014
updated tools/release.js to use uglify-js 2.x
@sayrer sayrer merged commit d35700e into twitter:master Jun 8, 2014
@sayrer
Copy link
Collaborator

sayrer commented Jun 8, 2014

thanks!

@ghost ghost deleted the uglify.js-2.x- branch June 8, 2014 20:55
@ghost
Copy link
Author

ghost commented Jun 8, 2014

my pleasure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant