diff options
author | max99x <max99x@gmail.com> | 2011-08-23 05:23:55 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-23 05:23:55 +0300 |
commit | 4d12c91bfb26979d00714843a038f916629e040d (patch) | |
tree | f44f27a9ef31e484eda3f9a22bcbe77d674860b8 /tools/eliminator/node_modules/uglify-js | |
parent | 4426e4b34c4dbbcfeab757cfc657b4a925cfca13 (diff) |
Added a redundant-variable eliminator script and its dependencies.
Diffstat (limited to 'tools/eliminator/node_modules/uglify-js')
94 files changed, 6175 insertions, 0 deletions
diff --git a/tools/eliminator/node_modules/uglify-js/.gitignore b/tools/eliminator/node_modules/uglify-js/.gitignore new file mode 100644 index 00000000..d97eaa09 --- /dev/null +++ b/tools/eliminator/node_modules/uglify-js/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +.tmp*~ +*.local.* +.pinf-*
\ No newline at end of file diff --git a/tools/eliminator/node_modules/uglify-js/README.html b/tools/eliminator/node_modules/uglify-js/README.html new file mode 100644 index 00000000..bd69e63e --- /dev/null +++ b/tools/eliminator/node_modules/uglify-js/README.html @@ -0,0 +1,888 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" +lang="en" xml:lang="en"> +<head> +<title>UglifyJS -- a JavaScript parser/compressor/beautifier</title> +<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> +<meta name="generator" content="Org-mode"/> +<meta name="generated" content="2011-08-20 10:08:28 EEST"/> +<meta name="author" content="Mihai Bazon"/> +<meta name="description" content="a JavaScript parser/compressor/beautifier in JavaScript"/> +<meta name="keywords" content="javascript, js, parser, compiler, compressor, mangle, minify, minifier"/> +<style type="text/css"> + <!--/*--><![CDATA[/*><!--*/ + html { font-family: Times, serif; font-size: 12pt; } + .title { text-align: center; } + .todo { color: red; } + .done { color: green; } + .tag { background-color: #add8e6; font-weight:normal } + .target { } + .timestamp { color: #bebebe; } + .timestamp-kwd { color: #5f9ea0; } + p.verse { margin-left: 3% } + pre { + border: 1pt solid #AEBDCC; + background-color: #F3F5F7; + padding: 5pt; + font-family: courier, monospace; + font-size: 90%; + overflow:auto; + } + table { border-collapse: collapse; } + td, th { vertical-align: top; } + dt { font-weight: bold; } + div.figure { padding: 0.5em; } + div.figure p { text-align: center; } + textarea { overflow-x: auto; } + .linenr { font-size:smaller } + .code-highlighted {background-color:#ffff00;} + .org-info-js_info-navigation { border-style:none; } + #org-info-js_console-label { font-size:10px; font-weight:bold; + white-space:nowrap; } + .org-info-js_search-highlight {background-color:#ffff00; color:#000000; + font-weight:bold; } + /*]]>*/--> +</style> +<link rel="stylesheet" type="text/css" href="docstyle.css" /> +<script type="text/javascript"> +<!--/*--><![CDATA[/*><!--*/ + function CodeHighlightOn(elem, id) + { + var target = document.getElementById(id); + if(null != target) { + elem.cacheClassElem = elem.className; + elem.cacheClassTarget = target.className; + target.className = "code-highlighted"; + elem.className = "code-highlighted"; + } + } + function CodeHighlightOff(elem, id) + { + var target = document.getElementById(id); + if(elem.cacheClassElem) + elem.className = elem.cacheClassElem; + if(elem.cacheClassTarget) + target.className = elem.cacheClassTarget; + } +/*]]>*///--> +</script> + +</head> +<body> +<div id="content"> + +<h1 class="title">UglifyJS – a JavaScript parser/compressor/beautifier</h1> + + +<div id="table-of-contents"> +<h2>Table of Contents</h2> +<div id="text-table-of-contents"> +<ul> +<li><a href="#sec-1">1 UglifyJS — a JavaScript parser/compressor/beautifier </a> +<ul> +<li><a href="#sec-1_1">1.1 Unsafe transformations </a> +<ul> +<li><a href="#sec-1_1_1">1.1.1 Calls involving the global Array constructor </a></li> +<li><a href="#sec-1_1_2">1.1.2 <code>obj.toString()</code> ==> <code>obj+“”</code> </a></li> +</ul> +</li> +<li><a href="#sec-1_2">1.2 Install (NPM) </a></li> +<li><a href="#sec-1_3">1.3 Install latest code from GitHub </a></li> +<li><a href="#sec-1_4">1.4 Usage </a> +<ul> +<li><a href="#sec-1_4_1">1.4.1 API </a></li> +<li><a href="#sec-1_4_2">1.4.2 Beautifier shortcoming – no more comments </a></li> +</ul> +</li> +<li><a href="#sec-1_5">1.5 Compression – how good is it? </a></li> +<li><a href="#sec-1_6">1.6 Bugs? </a></li> +<li><a href="#sec-1_7">1.7 Links </a></li> +<li><a href="#sec-1_8">1.8 License </a></li> +</ul> +</li> +</ul> +</div> +</div> + +<div id="outline-container-1" class="outline-2"> +<h2 id="sec-1"><span class="section-number-2">1</span> UglifyJS — a JavaScript parser/compressor/beautifier </h2> +<div class="outline-text-2" id="text-1"> + + +<p> +This package implements a general-purpose JavaScript +parser/compressor/beautifier toolkit. It is developed on <a href="http://nodejs.org/">NodeJS</a>, but it +should work on any JavaScript platform supporting the CommonJS module system +(and if your platform of choice doesn't support CommonJS, you can easily +implement it, or discard the <code>exports.*</code> lines from UglifyJS sources). +</p> +<p> +The tokenizer/parser generates an abstract syntax tree from JS code. You +can then tra |