Remove YUI Compressor

It has not been updated in years and can no longer handle modern JavaScript syntax emitted by the Haxe compiler
This commit is contained in:
Josh Tynjala
2025-03-03 13:27:32 -08:00
parent 31c2f7cdbf
commit 1beaa23b38
4 changed files with 1 additions and 15 deletions

View File

@@ -136,6 +136,3 @@ This product bundles http-server 0.10.0 and its dependencies, which is available
This product bundles webify 0.1.1.0, which is available under an
"MIT" license. For details, see https://github.com/ananthakumaran/webify.
This product bundles YUI Compressor 2.4.7, which is available under an
"MIT" license. For details, see https://github.com/yui/yuicompressor.

View File

@@ -226,17 +226,7 @@ class HTML5Helper
}
else if (project.targetFlags.exists("yui"))
{
var templatePaths = [
Path.combine(Haxelib.getPath(new Haxelib(#if lime "lime" #else "hxp" #end)), #if lime "templates" #else "" #end)
].concat(project.templatePaths);
System.runCommand("", "java", [
"-Dapple.awt.UIElement=true",
"-jar",
System.findTemplate(templatePaths, "bin/yuicompressor-2.4.7.jar"),
"-o",
tempFile,
sourceFile
]);
Log.error("YUI Compressor is no longer supported by Lime for JavaScript minification.");
}
else
{

View File

@@ -1042,7 +1042,6 @@ class CommandLineTools
{
Log.println(" \x1b[3m(html5|flash|webassembly)\x1b[0m \x1b[1m-nolaunch\x1b[0m -- Begin test server without launching");
// Log.println (" \x1b[3m(html5)\x1b[0m \x1b[1m-minify\x1b[0m -- Minify output using the Google Closure compiler");
// Log.println (" \x1b[3m(html5)\x1b[0m \x1b[1m-minify -yui\x1b[0m -- Minify output using the YUI compressor");
Log.println(" \x1b[3m(html5|flash|webassembly)\x1b[0m \x1b[1m--port=\x1b[0;3mvalue\x1b[0m -- Set port for test server");
}