1
0
mirror of https://github.com/mrclay/minify.git synced 2025-01-17 21:28:14 +01:00

Moved "lib" into "min" for easiest deployment

This commit is contained in:
Steve Clay 2008-08-19 03:58:28 +00:00
parent 03e1989d35
commit 51adb91399
24 changed files with 13 additions and 22 deletions

View File

@ -17,7 +17,7 @@ $minifyCachePath = 'c:\\xampp\\tmp';
/**
* Manually set the path to Minify's lib folder
*/
$minifyLibPath = '../lib';
//$minifyLibPath = '../lib';
/**
@ -44,8 +44,4 @@ $minifyAllowBase = true;
*
* // = DOCUMENT_ROOT
*/
$minifyAllowDirs = array(
'//js'
,'//css'
);
$minifyAllowDirs = array('//js', '//css');

View File

@ -1,33 +1,28 @@
Document Path: /_3rd_party/minify/web/ab_tests/ideal_php/before.php
Document Length: 15993 bytes
Requests per second: 389.06 [#/sec] (mean)
Requests per second: 429.53 [#/sec] (mean)
--------------------------------------------------------------------------------
Document Path: /_3rd_party/minify/web/ab_tests/v1.0/minify.php?files=before.js
Document Length: 54159 bytes
(Connect: 3, Length: 0, Exceptions: 0)
Requests per second: 271.19 [#/sec] (mean)
Requests per second: 299.07 [#/sec] (mean)
--------------------------------------------------------------------------------
Document Path: /_3rd_party/minify/web/ab_tests/minify/test_Files.php
Document Length: 15993 bytes
(Connect: 0, Length: 1, Exceptions: 0)
Requests per second: 261.22 [#/sec] (mean)
Requests per second: 243.81 [#/sec] (mean)
--------------------------------------------------------------------------------
Document Path: /_3rd_party/minify/web/ab_tests/minify/test_Groups.php/test
Document Length: 15993 bytes
(Connect: 3, Length: 0, Exceptions: 0)
Requests per second: 234.86 [#/sec] (mean)
Requests per second: 225.35 [#/sec] (mean)
--------------------------------------------------------------------------------
Document Path: /_3rd_party/minify/web/ab_tests/minify/test_Version1.php?files=before.js
Document Length: 15993 bytes
(Connect: 0, Length: 1, Exceptions: 0)
Requests per second: 251.97 [#/sec] (mean)
Requests per second: 234.43 [#/sec] (mean)
--------------------------------------------------------------------------------
Document Path: /_3rd_party/minify/web/ab_tests/mod_deflate/before.js
Document Length: 16053 bytes
(Connect: 3, Length: 0, Exceptions: 0)
Requests per second: 182.08 [#/sec] (mean)
Requests per second: 189.07 [#/sec] (mean)
--------------------------------------------------------------------------------
Document Path: /_3rd_party/minify/web/ab_tests/type-map/before.js.var
Document Length: 15993 bytes
Requests per second: 501.96 [#/sec] (mean)
Requests per second: 503.94 [#/sec] (mean)
--------------------------------------------------------------------------------

View File

@ -202,7 +202,7 @@ class Minify {
* @see minifyCSS()
*/
protected static function minifyJS($js) {
require_once dirname(__FILE__).'/../../../lib/JSMin.php';
require_once dirname(__FILE__).'/../../../min/lib/JSMin.php';
return JSMin::minify($js);
}

View File

@ -5,7 +5,7 @@
* production this could be done via .htaccess or some other method.
*/
ini_set('include_path',
dirname(__FILE__) . '/../lib'
dirname(__FILE__) . '/../min/lib'
. PATH_SEPARATOR . ini_get('include_path')
);

View File

@ -2,7 +2,7 @@
if (isset($_FILES['subject']['name'])) {
require '../../lib/HTTP/Encoder.php';
require '../../min/lib/HTTP/Encoder.php';
$he = new HTTP_Encoder(array(
'content' => file_get_contents($_FILES['subject']['tmp_name'])
,'method' => $_POST['method']

View File

@ -4,7 +4,7 @@ if (isset($_FILES['subject']['name'])
&& preg_match('/\\.(js|css|html)$/', $_FILES['subject']['name'], $m)
) {
ini_set('include_path',
dirname(__FILE__) . '/../../lib'
dirname(__FILE__) . '/../../min/lib'
. PATH_SEPARATOR . ini_get('include_path')
);