Elan Ruusamäe
27b5f4b2d0
handle more ng exit codes
...
comments from #87 :
* cbed5408dddccae5589bcef73c5aeedeed06b8e5
For some reasons Nailgun thinks that it's server
broke the connection and returns 227 instead of 0
We'll just handle this here instead of fixing
the nailgun client itself.
* 7810d4a44563f7a5dddff7fca2e11e7191979bbe
It also sometimes breaks on 229 on the devbox.
To complete this whole madness and made future
'fixes' easier I added this nice little array...
2015-11-20 14:04:14 +02:00
Elan Ruusamäe
5458206700
add Nailgun based ClosureCompiler
2015-11-20 13:54:42 +02:00
Elan Ruusamäe
35a9ab7d4a
avoid unneccessary static calls
2015-11-19 17:56:05 +02:00
Elan Ruusamäe
0a74b9c4a6
refactor closure compiler class to allow extensibility
2015-11-19 17:52:11 +02:00
Steve Clay
6e8a656480
Add HTML5 block level elements to Minify_HTML
...
Fixes #424
2015-09-29 15:45:24 -04:00
Steve Clay
12e7a8d0dd
Allow sources to have null contentType if serve is given one
2015-09-29 13:18:10 -04:00
Steve Clay
f769e35233
Improve source factory constructor docs
2015-09-29 11:31:57 -04:00
Steve Clay
271d8ca5bf
Don't assume all allowDir paths start with "//"
2015-09-29 11:31:28 -04:00
Steve Clay
a0d99f5be5
Make sure doc root rtrimmed in Env
2015-09-29 11:29:52 -04:00
Steve Clay
ed1d2d9baf
Improve docs for Files controller
2015-09-29 11:29:05 -04:00
Steve Clay
e2efb342a8
Remove JSMin+ and old, unfinished CssCompressor port
...
JSMin+ was a good effort but is unmaintained and has collected several
reports of impractical memory usage for a project like this.
2015-09-29 10:38:22 -04:00
Steve Clay
fede83cd48
Version constant bump, disable min_extras, docs updates
2015-09-29 10:12:47 -04:00
Steve Clay
0bc3769802
Make CSSmin the default CSS compressor
2015-09-28 20:32:56 -04:00
Steve Clay
e596b35fc4
Collapse "min" into project root and get unit tests working.
...
Fixes #472
2015-09-28 15:39:25 -04:00
Steve Clay
51adb91399
Moved "lib" into "min" for easiest deployment
2008-08-19 03:58:28 +00:00
Steve Clay
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
2008-08-18 23:38:39 +00:00
Steve Clay
711fbeb365
Minify_HTML: simplified placeholder logic
2008-08-17 17:41:13 +00:00
Steve Clay
50128e5600
Minify_HTML: shorter line lengths
2008-08-16 21:24:33 +00:00
Steve Clay
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
2008-08-16 15:25:27 +00:00
Steve Clay
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!
2008-08-14 06:15:18 +00:00
Steve Clay
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)
2008-08-14 04:24:41 +00:00
Steve Clay
d2746cb43c
Minify_HTML: more efficient removal of ws outside tags, and possible fix to Issue 46
...
test/test_HTML.php: + timing when called directly
2008-08-13 14:00:11 +00:00
Steve Clay
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)
2008-08-12 01:55:35 +00:00
Steve Clay
1e04e2c68e
Minify_HTML code cleanup and minimal docblock.
2008-07-31 16:03:04 +00:00
Steve Clay
7e1f77f5d0
Minify_HTML no longer affects TEXTAREAs
2008-07-31 15:16:42 +00:00
Steve Clay
6ce0e380f0
Minify_CSS: removing more ws (in font-family lists and before values starting with [#'"]) + tests with media queries and CSS3 selectors.
2008-07-29 19:50:38 +00:00
Steve Clay
0697a120ee
+ Minify::$uploaderHoursBehind
...
+ fixed backtrace limit issue in Minify_HTML
+ default max-age of 30 minutes (instead of 0)
2008-07-29 03:48:10 +00:00
Steve Clay
6b4bfe84c4
Prevent 0-byte files caused by file_put_contents + LOCK_EX.
2008-07-24 00:38:55 +00:00
Steve Clay
974f84305e
Added docblock comments
2008-07-23 00:32:04 +00:00
Steve Clay
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.)
2008-07-22 23:39:12 +00:00
Steve Clay
6cdfb77083
Added Minify_Lines to test suite, full docs on added methods in Minify & Minify_Lines.
2008-06-30 19:46:23 +00:00
Steve Clay
e77a1cf82c
Added 'debug' option to serve() to use Minify_Lines
2008-06-28 20:23:29 +00:00
Steve Clay
46f8993292
Added Minify_Lines for use in debugging.
2008-06-28 04:33:28 +00:00
Steve Clay
9127fa750e
Auto-cast source lists to array so the user needn't make an array for one file/source.
2008-06-27 21:41:37 +00:00
Steve Clay
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
2008-06-27 20:45:20 +00:00
Steve Clay
38d22d5cc3
Corrupted cache files are now deleted.
2008-06-25 03:56:10 +00:00
Steve Clay
4f615c12f3
Moved file caching to Minify_Cache_File.
...
Removed Cache_Lite.
Deprecated UseServerCache() in favor of setCache().
Added Groups controller to ab tests.
2008-06-22 15:08:30 +00:00
Steve Clay
bf935a9895
Default charset now UTF-8. Easier ab tests config.
2008-06-09 23:29:38 +00:00
Steve Clay
97eaa576ed
Source.php now strips leading UTF-8 BOMs and added BOMs to javascript test files to test this, and note in README.
2008-05-22 15:23:28 +00:00
Steve Clay
ae22377b26
Prep for 2.0 release. Moved JSMin to lib/. Removed Packer and tests, left only wrapper class w/ instructions.
2008-05-22 15:03:05 +00:00
Steve Clay
e9035109c9
+ BMH and MSIE filters to css/hacks.css. Minify_CSS no longer minifies RGB colors in MSIE filters.
2008-05-14 16:15:09 +00:00
Steve Clay
1c1a6f327d
+ YUI Compressor-style comment preservation to CSS.php, adjusted tests to match
2008-05-14 12:58:54 +00:00
Steve Clay
2cbf5c9b39
+ preserveComments option to Minify_Javascript (default true), test case, and doc comments
2008-05-07 20:11:55 +00:00
Steve Clay
727f33657d
Added setExpires option to Build.php example
2008-05-07 12:29:13 +00:00
Steve Clay
d6c933e80d
+ "//" filepath shortcut in Build.php
...
+ 'getContentFunc' option in Source.php for lazy loading content only when needed (e.g. from DB)
2008-03-29 03:09:41 +00:00
Steve Clay
d38f3d0219
+ // shortcut for doc_root
2008-03-28 00:52:37 +00:00
Steve Clay
17455e5fbd
+ shortcut for specifying files in doc_root
2008-03-28 00:41:16 +00:00
Steve Clay
a714255c69
+ Minify/Build.php and example 2 showing use
2008-03-27 18:51:55 +00:00
Steve Clay
cd0675f490
+ Solar_Dir for better PHP compat. Moved most of minify.php code to Controller/Version1.php. + a few tests for version1/minify.php
2008-03-27 16:04:45 +00:00
Steve Clay
c15acc8782
+ test_HTTP_ConditionalGet.php, phpDoc improvements, moved packer to 3rd-party, test for Minify loading fewer files for 304 responses.
2008-03-05 22:59:23 +00:00