1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-18 03:41:35 +02:00

Commit Graph

  • 7b9fcb4dd6 crude builder app for generating URIs quickly Steve Clay 2008-09-03 05:13:52 +00:00
  • e31e9299a5 HTTP/Encoder.php : by default no longer encodes to IE6, + setting to do so importProcessor/output.css : fixed to work portably Steve Clay 2008-09-02 18:10:21 +00:00
  • a45e4a3d8d + Minify/CommentPreserver.php w/ unit tests CSS/UriRewriter.php : unit tests Minify/ImportProcessor.php : unit tests (need JS tests) Minify/CSS.php : refactoring using CommentPreserver.php Minify/Javascript.php : refactoring using CommentPreserver.php Minify/Lines.php : simplification Steve Clay 2008-09-01 21:19:59 +00:00
  • eebe132aed Added CSS/UriRewriter.php : untested! Minify/ImportProcessor.php units need fixing Steve Clay 2008-08-30 07:25:37 +00:00
  • 560bcfd440 (more) Refactoring CSS/Linearizer.php to Minify/ImportProcessor.php Steve Clay 2008-08-30 06:40:27 +00:00
  • b1747b13db Refactoring CSS/Linearizer.php to Minify/ImportProcessor.php Steve Clay 2008-08-30 06:30:07 +00:00
  • bd6af94f07 min/README.txt : more thorough min/utils.php : fixed example code min/config.php : improved explanation Steve Clay 2008-08-30 05:40:10 +00:00
  • 85fdced508 Unit tests for Cache/File.php and Cache/Memcache.php More consistent file naming Steve Clay 2008-08-30 03:29:49 +00:00
  • 8d22e6e33a Renamed "tests" to "unit_tests" Cache/Memcache.php : new! utils.php : a few _Minify utility functions for the "min" app HISTORY : preparation for 2.1 beta Steve Clay 2008-08-30 03:06:26 +00:00
  • 5fc4d15889 Reorganization of "web" to "min_extras" (part 1) Steve Clay 2008-08-30 02:58:25 +00:00
  • 46734e8b8f Reorganization of "web" to "min_extras" Steve Clay 2008-08-30 02:56:07 +00:00
  • 79a4e17fb6 All PHP/doc files have Unix newlines w/ no BOM Steve Clay 2008-08-29 22:56:34 +00:00
  • 5a09b4943a CSS/Linearizer.php : will no longer try to import already included files Steve Clay 2008-08-28 22:41:51 +00:00
  • 0cb7eeab45 CSS/Linearizer.php : better implementation (won't import commented out @imports), unit test tests which files are included and should now work anywhere in a DOC ROOT Steve Clay 2008-08-28 17:49:03 +00:00
  • 1cbcefa634 CSS/Linearizer.php : URI rewriting + initial unit test Steve Clay 2008-08-28 03:16:33 +00:00
  • 41e937f143 CSS/Linearizer.php : work started CSS.php & Source.php : whitespace/EOL cleanup Steve Clay 2008-08-27 21:51:20 +00:00
  • 4b3e92ca91 min: + options for maxAge, uploaderHoursBehind, debug Minify: better docblock for uploaderHoursBehind Steve Clay 2008-08-24 00:30:30 +00:00
  • 5b1b3381db Groups.php: + workaround for PATH_INFO on Apache w/ mod_fcgid Steve Clay 2008-08-23 02:21:55 +00:00
  • 731ed09fd1 test_HTML.php + test for HTML (already had XHTML) Steve Clay 2008-08-20 20:55:53 +00:00
  • 0db6b60800 Minify_CSS: no longer mangles Tantek's Mid Pass Filter Steve Clay 2008-08-20 19:21:10 +00:00
  • 62d7c83d80 + README.txt min/config.php: removed $minifyAllowBase option and reorganized file min/index.php: added option to send far-off expires if "&\d" matches query string Steve Clay 2008-08-19 21:01:05 +00:00
  • 51adb91399 Moved "lib" into "min" for easiest deployment Steve Clay 2008-08-19 03:58:28 +00:00
  • 03e1989d35 Rewrite relative URIs in CSS by default (adjusted test accordingly) Minify.php: + 'rewriteCssUris' option Controller/Base.php: + 'rewriteCssUris' default value Controller/Version1.php: moved rewriting to serve() Minify/CSS.php: renamed option 'currentPath' to 'currentDir' Minify/Source.php: made $filepath public Steve Clay 2008-08-18 23:38:39 +00:00
  • 711fbeb365 Minify_HTML: simplified placeholder logic Steve Clay 2008-08-17 17:41:13 +00:00
  • 2b8b1a5d25 Fix minify test case. Minify: Make postProcessor option affect cacheId Steve Clay 2008-08-16 22:13:28 +00:00
  • 50128e5600 Minify_HTML: shorter line lengths Steve Clay 2008-08-16 21:24:33 +00:00
  • 348c838c8b min/config.php: allows multiple allow directories Controller/Version1.php: + option to specify multiple allow dirs Minify_Controller_Base::_fileIsSafe() allows multiple safe dirs Minify_CSS: shorter line length output Steve Clay 2008-08-16 15:25:27 +00:00
  • d4e71636b8 Forgot to update HTML test when CSS minifier changed output. All tests pass. Steve Clay 2008-08-14 06:18:11 +00:00
  • fe13899693 Minfy_HTML: all Unix newlines, replaces spaces with newlines in some tags to limit line lengths Minify_CSS: fix Issue 49, uses newlines in common descendant selectors to limit line lengths All tests passing with shorter lines and no added bytes! Steve Clay 2008-08-14 06:15:18 +00:00
  • 08196a7ead Minify_CSS: URIs can be rewritten inside @imports with media types, trims around properties beginning with * or _ (targeting IE), more thorough internal docs (inc regexes), all Unix newlines + tests for the above changes + test for unusual but valid strings in style sheets (currently FAILs) Steve Clay 2008-08-14 04:24:41 +00:00
  • d2746cb43c Minify_HTML: more efficient removal of ws outside tags, and possible fix to Issue 46 test/test_HTML.php: + timing when called directly Steve Clay 2008-08-13 14:00:11 +00:00
  • 961e04ca30 Created "min" = new default implementation as specified in Issue 45. Minify: fixed default value in useServerCache(), + doc for 'contentType' serve() option Minify_Controller_Base: added todo item Minify_Controller_Version1: fixed default cache to '' (instead of null) Steve Clay 2008-08-12 01:55:35 +00:00
  • 1e04e2c68e Minify_HTML code cleanup and minimal docblock. Steve Clay 2008-07-31 16:03:04 +00:00
  • 7e1f77f5d0 Minify_HTML no longer affects TEXTAREAs Steve Clay 2008-07-31 15:16:42 +00:00
  • 6ce0e380f0 Minify_CSS: removing more ws (in font-family lists and before values starting with [#'"]) + tests with media queries and CSS3 selectors. Steve Clay 2008-07-29 19:50:38 +00:00
  • 0697a120ee + Minify::$uploaderHoursBehind + fixed backtrace limit issue in Minify_HTML + default max-age of 30 minutes (instead of 0) Steve Clay 2008-07-29 03:48:10 +00:00
  • 8de36cc08f Clarified comment. Steve Clay 2008-07-24 00:51:54 +00:00
  • 6b4bfe84c4 Prevent 0-byte files caused by file_put_contents + LOCK_EX. Steve Clay 2008-07-24 00:38:55 +00:00
  • 974f84305e Added docblock comments Steve Clay 2008-07-23 00:32:04 +00:00
  • 2a41ee92c1 Resolved issue 37: replaced 'setExpires' with 'maxAge' option which allows both Expires headers and conditional GETs (if a page should be reloaded in IE, e.g.) Steve Clay 2008-07-22 23:39:12 +00:00
  • 3ddc831f20 Completed HTTP_ConditionalGet change to accept 'maxAge' not prevent conditional GETs. Also 304 responses now have the full Cache-Control/Last-Modified/ETag headers so max-age will be honored after each 304 response. Steve Clay 2008-07-22 23:05:06 +00:00
  • 3f5c9f4de0 Added 'maxAge' option (removed 'setExpires') and changed behavior so that conditional GET is still implemented when max-age/Expires is sent. Steve Clay 2008-07-22 20:43:27 +00:00
  • 6cdfb77083 Added Minify_Lines to test suite, full docs on added methods in Minify & Minify_Lines. Steve Clay 2008-06-30 19:46:23 +00:00
  • e77a1cf82c Added 'debug' option to serve() to use Minify_Lines Steve Clay 2008-06-28 20:23:29 +00:00
  • 46f8993292 Added Minify_Lines for use in debugging. Steve Clay 2008-06-28 04:33:28 +00:00
  • 9127fa750e Auto-cast source lists to array so the user needn't make an array for one file/source. Steve Clay 2008-06-27 21:41:37 +00:00
  • 16079919fb CSS.php fix for empty comments (/**/) Added test with @media section: http://sourceforge.net/tracker/index.php?func=detail&aid=1961175&group_id=165715&atid=836476 Steve Clay 2008-06-27 20:45:20 +00:00
  • 04514eefd6 + test CSS file from http://www.vladimirated.com/web-development-minify-css-using-php-and-cssmin-class Steve Clay 2008-06-27 19:36:50 +00:00
  • 38d22d5cc3 Corrupted cache files are now deleted. Steve Clay 2008-06-25 03:56:10 +00:00
  • dcd99a1e51 docs Steve Clay 2008-06-25 02:59:06 +00:00
  • 7bf6df24fa Steve Clay 2008-06-22 15:09:14 +00:00
  • 4f615c12f3 Moved file caching to Minify_Cache_File. Removed Cache_Lite. Deprecated UseServerCache() in favor of setCache(). Added Groups controller to ab tests. Steve Clay 2008-06-22 15:08:30 +00:00
  • a6d7115a6c HTTP_Encoder now tests decompression and allows compressed content to be within 100 bytes of target size. Steve Clay 2008-06-22 12:53:18 +00:00
  • d9c75da506 phpDoc now works. Started to improve docblocks. Steve Clay 2008-06-18 11:44:39 +00:00
  • bf935a9895 Default charset now UTF-8. Easier ab tests config. Steve Clay 2008-06-09 23:29:38 +00:00
  • 4c85da1fb3 Added/improved ab tests. Prepended "minify_" to cache filenames. Steve Clay 2008-06-09 20:30:11 +00:00
  • 8cde22b934 ab results for R121 Steve Clay 2008-06-08 13:27:01 +00:00
  • 60f001c425 Rewrote Minify::serve() to use built-in cache functions and send cached output with readfile() = huge perf increase. Also only returns array iff quiet is set. Removed a few options. Encoder.php : added option to leave out compress Fixed unit tests for new Minify behavior and to show verbose when called directly on Windows. Steve Clay 2008-06-08 13:24:23 +00:00
  • 867fccb9cf More ab testing and result files Steve Clay 2008-06-07 23:17:16 +00:00
  • 15e21bf6d2 + type-map ab test Steve Clay 2008-06-04 05:15:37 +00:00
  • 6cf3d1d792 + web/tools Steve Clay 2008-06-04 05:12:03 +00:00
  • c314cbecd6 + ab tests for Minify and Apache configs to serve static files. + web/tools directory for single file utilities Steve Clay 2008-06-04 05:05:41 +00:00
  • 930ad768cf + E_STRICT compliance Steve Clay 2008-06-01 02:52:59 +00:00
  • 457ed43590 + mod_rewrite to sniff out old IEs. Renamed before.var to before.js.var Steve Clay 2008-05-27 00:17:15 +00:00
  • f4c3b6be24 + encode.php (file encoder tool) and test of Apache content negotiation Steve Clay 2008-05-26 17:11:48 +00:00
  • 97eaa576ed Source.php now strips leading UTF-8 BOMs and added BOMs to javascript test files to test this, and note in README. Steve Clay 2008-05-22 15:23:28 +00:00
  • ae22377b26 Prep for 2.0 release. Moved JSMin to lib/. Removed Packer and tests, left only wrapper class w/ instructions. Steve Clay 2008-05-22 15:03:05 +00:00
  • db91905934 - test for Caio hack (already in hacks.css) Steve Clay 2008-05-15 15:34:49 +00:00
  • 53fcbd9166 Fixed test_HTTP_Encoder.php Steve Clay 2008-05-15 15:29:59 +00:00
  • fb4ecd2231 Moved HTTP examples into web/test Steve Clay 2008-05-15 15:20:33 +00:00
  • 048c689663 Reorganized examples Steve Clay 2008-05-15 15:03:46 +00:00
  • e9035109c9 + BMH and MSIE filters to css/hacks.css. Minify_CSS no longer minifies RGB colors in MSIE filters. Steve Clay 2008-05-14 16:15:09 +00:00
  • 1c1a6f327d + YUI Compressor-style comment preservation to CSS.php, adjusted tests to match Steve Clay 2008-05-14 12:58:54 +00:00
  • 2cbf5c9b39 + preserveComments option to Minify_Javascript (default true), test case, and doc comments Steve Clay 2008-05-07 20:11:55 +00:00
  • 727f33657d Added setExpires option to Build.php example Steve Clay 2008-05-07 12:29:13 +00:00
  • d6c933e80d + "//" filepath shortcut in Build.php + 'getContentFunc' option in Source.php for lazy loading content only when needed (e.g. from DB) Steve Clay 2008-03-29 03:09:41 +00:00
  • d38f3d0219 + // shortcut for doc_root Steve Clay 2008-03-28 00:52:37 +00:00
  • 17455e5fbd + shortcut for specifying files in doc_root Steve Clay 2008-03-28 00:41:16 +00:00
  • a714255c69 + Minify/Build.php and example 2 showing use Steve Clay 2008-03-27 18:51:55 +00:00
  • cd0675f490 + Solar_Dir for better PHP compat. Moved most of minify.php code to Controller/Version1.php. + a few tests for version1/minify.php Steve Clay 2008-03-27 16:04:45 +00:00
  • c15acc8782 + test_HTTP_ConditionalGet.php, phpDoc improvements, moved packer to 3rd-party, test for Minify loading fewer files for 304 responses. Steve Clay 2008-03-05 22:59:23 +00:00
  • a0d48f16fb Optimized header sniffing in Encoder.php; no more regex's needed for most browsers. Updated README w/r/t test suite update. Steve Clay 2008-03-05 14:56:23 +00:00
  • 98530fcd57 + compression ratios in Encoder tests Steve Clay 2008-03-04 22:02:57 +00:00
  • e2ad73f8be Improved/added tests, deflate preferred over gzip, improved ConditionalGet docs Steve Clay 2008-03-04 17:04:09 +00:00
  • f771696d40 Started moving 3rd-party code to separate folder. Should make keeping up w/ changes easier. Steve Clay 2008-03-03 22:04:42 +00:00
  • e8ac1dc8d0 Perf update for JSmin (Minify_Javascript), + phpDocs for public HTTP_* class APIs, minor Minify fix, private members changed to protected to allow easier subclassing. Steve Clay 2008-03-03 16:23:39 +00:00
  • 7a3d7129b4 + HTTP_ConditionalGet_Build directory change monitor, + post-processing hook in Minify (for appending timestamps to URIs, etc.) Steve Clay 2008-03-02 04:59:13 +00:00
  • d86d79b7d2 + URI rewriter in CSS min, fix for protocol-relative URIs, + partial minify.php compatibility Steve Clay 2008-03-01 20:23:50 +00:00
  • 381bd8856d Controllers now supply all options and are easier to write! serve() returns more useful info and needs only one option array for both controller/minify options. Steve Clay 2008-03-01 15:08:38 +00:00
  • 7e9bf6d948 More thorough test_Minify.php Better var/method naming. Steve Clay 2008-03-01 04:56:11 +00:00
  • f46e321831 added 'quiet' option. and now serve() and handleRequest() return an array of output content and headers. Steve Clay 2008-02-29 23:59:50 +00:00
  • 023066ad0a option changed to "setExpires" default missing minifier is none (no minification performed) Steve Clay 2008-02-29 22:18:16 +00:00
  • ca0a4cd7cf README update (important at the moment) Steve Clay 2008-02-29 03:04:40 +00:00
  • d886df7f18 better README readability Steve Clay 2008-02-29 01:53:41 +00:00
  • 99c5af660b Docs update Steve Clay 2008-02-29 01:36:05 +00:00
  • bfffed0244 deleted unused css test files Steve Clay 2008-02-29 00:50:45 +00:00
  • b04ff4c6e9 Moved examples and tests to combined web folder. Unfortunately I didn't do this with SVN move and the server wouldn't let me rollback to do this. Steve Clay 2008-02-28 22:32:56 +00:00
  • 041ea14cc4 Steve Clay 2008-02-28 21:14:06 +00:00
  • 0a939d4f91 V1.9.0 overhaul Steve Clay 2008-02-28 18:42:56 +00:00
  • 5527771acf beginnings of HTML minification support (again) Ryan Grove 2007-06-06 06:26:14 +00:00