1
0
mirror of https://github.com/mrclay/minify.git synced 2025-03-12 16:39:38 +01:00

53 Commits

Author SHA1 Message Date
Steve Clay
2045731d60 Improve Minify_Lines algorithm and add tests
Fixes #531
Fixes #534
2016-05-19 15:14:27 -04:00
Steve Clay
24b601217e Merge pull request #512 from mrclay/deps
Large restructuring
2016-03-10 18:48:49 -05:00
Steve Clay
4710509c68 Large restructuring
Moves all dependency building into App
bootstrap.php returns an App instance
The app loads config files as necessary
Moves logging to Monolog
Moves HTTP digest auth to packagist component
Rely on sys_get_temp_dir
Env hosts $_POST and allows defaults when reading
HTML helper uses the App and can handle less files
Source factory assumes strings are filenames
Fixes JsClosureCompilerTest::test6 (API now handles ES5 by default)
Exclude JsClosureCompilerTest due to API limitations
config.php can now return a Minify\Config object
Variables set in config.php are now moved to a `Minify\Config` object,
allowing better static analysis.
The `zlib.output_compression` set is moved into `Minify::serve`.
2016-03-10 18:44:23 -05:00
Steve Clay
7dbd2c87e4 Minify no longer tries to minify -min.js/.min.js files
2.2 used empty string as a magical value meaning do not minify, but
in the refactoring `Minify::combineMinify` forgot to interpret this
value that way and instead inherited the default compressor for the type.

This eliminates `""` as a magical value, but for BC rewrites it to
`Minify::nullMinifier` in the sources.

Fixes #499
2016-02-26 11:17:55 -05:00
Steve Clay
316a109032 Port last of min_unit_tests, remove references to it, add composer script 2015-11-22 13:57:53 -05:00
Steve Clay
a566536f80 Make Minify::combine and mix_extra stuff operational (and disabled by default) 2015-09-29 13:17:31 -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
de8e8be37e Merge commit '5b6b891cc379be1b9c014a5bb070e5e2e792d64c' into 3.0 2015-09-27 18:02:48 -04:00
Elan Ruusamäe
0e9e1237c6 make composer dependency required
NOTE: this changes required minimum PHP version to 5.3.3
2014-10-16 00:04:51 +03:00
Elan Ruusamäe
0cbbcd0a53 get rid of $min_libPath 2014-10-12 17:21:21 +03:00
Elan Ruusamäe
96da497e9c rework classloader
- make it available in config
- always use classloader, no manual require
- compatible for future composer alternative
2014-10-12 16:28:41 +03:00
acidvertigo
f29e1e6b06 Code clean 2014-09-21 12:50:53 -04:00
acidvertigo
153e08b5a0 Code clean 2014-09-20 14:21:31 +03:00
Steve Clay
5560a664e9 Fix up web-based tool and correct error byte in JSMin exceptions 2013-11-27 18:28:39 -05:00
Steve Clay
218f37fb44 Update CSSmin, adds Minify_CSSmin wrapper, removes units for CSSmin 2013-11-13 20:18:19 -05:00
Steve Clay
f680ac83e7 Add elapsed time to minifyTextarea, better escaping 2012-11-25 16:34:55 -05:00
Steve Clay
7e08cff1f0 Merge pull request #36 from robations/patch-1
Path/require problem in cli script min_extras/cli/minify.php
2012-11-23 15:19:53 -08:00
Robert Churchill
3b2fd8dfd6 Make cli script more portable
Changing hash-bang interpreter to `#!/usr/bin/env php`, for better portability with OSs such as BSD.
2012-10-19 19:42:31 +02:00
Robert Churchill
0d5e3295a3 Update min_extras/cli/minify.php
I think the path variable got renamed inconsistently?
2012-10-19 18:32:26 +02:00
Steve Clay
c196dd39df Replaced all class require's with autoloader 2012-09-30 17:51:34 -04:00
Steve Clay
bcd231eb7c CLI minify! 2012-02-28 16:58:35 -05:00
Steve Clay
f2372744c5 Added test-run option in place of verbose 2012-02-28 16:17:20 -05:00
Steve Clay
1cebfec066 Cli upgrade 2012-02-28 15:56:47 -05:00
Steve Clay
4f490d0f48 rewrite-uri CLI tool 2012-02-25 01:19:36 -05:00
Steve Clay
67bbc4b94e Tools for easier testing 2012-02-12 23:13:06 -05:00
Steve Clay
1c5810d2b0 cleaning trunk 2011-01-19 18:43:18 +00:00
Steve Clay
bd1df7734b MinApp.php + utils.php : Issue 86 2009-10-13 00:56:45 +00:00
Steve Clay
444335b28c Implemented SPL autoloader, removed class requires 2009-09-19 17:00:52 +00:00
Steve Clay
cb8519508b + minifyUrl.php for testing minifiers on remote files 2009-05-04 02:40:27 +00:00
Steve Clay
dce1b8df91 minifyTextarea.php : set charset, + HTML rendering option
Fixed source array casting in controllers Files, Groups, MinApp
Changed default from "UTF-8" to "utf-8"
2009-05-01 17:11:44 +00:00
Steve Clay
17a4bc96f1 + minifyTextarea.php for quick testing 2009-04-25 00:18:38 +00:00
Steve Clay
974ceffa4c JSMin.php : trimmed output, better exception messages
Removed unnecessary wrapper Minify_Javascript
2009-03-29 22:57:35 +00:00
Steve Clay
b021ed0c56 CSS/UriRewriter.php : refactoring + better docs
testRewriteUri.php : for testing Minify_CSS_UriRewriter::rewrite()
2009-03-18 18:30:04 +00:00
Steve Clay
12ca7b470f + Controller/MinApp.php for min app
min/index.php : rewritten to use MinApp.php
Controller/Base.php : simplified _fileIsSafe()
min/config.php : + flock and maxFiles options
2008-09-18 01:56:29 +00:00
Steve Clay
c54ae9205c moved unit_tests to min_unit_tests
min/builder/index.php : + note about CSS imports
HISTORY.txt and README.txt additions
some text file renaming
tools removed
2008-09-11 20:37:16 +00:00
Steve Clay
0245f31b2d ab results w/ cache file locking on 2008-09-07 02:20:57 +00:00
Steve Clay
9a5a67dfaf builder app improvements and bookmarklet
JSMin.php : + YUI and IE conditional comment preserving
2008-09-06 22:35:22 +00:00
Steve Clay
7bb535d79c Cache/File.php : + file locking option (still need cache stress test) 2008-09-05 20:50:58 +00:00
Steve Clay
66aba1fd2a + memcached test (buggy on Windows at least)
all min_extras apps use the cache path and lib location specified in min/config.php
2008-09-04 20:50:28 +00:00
Steve Clay
1f66aefc4e Memcache ab testing (memcached seems to be running out of connections on XP) 2008-09-04 12:02:00 +00:00
Steve Clay
4c9d62be82 ab_tests/ : + test for /min (and reran)
examples : cleanup
- examples/3
- jquery-1.2.3.js (unneeded duplicate)
2008-09-04 01:08:38 +00:00
Steve Clay
e31e9299a5 HTTP/Encoder.php : by default no longer encodes to IE6, + setting to do so
importProcessor/output.css : fixed to work portably
2008-09-02 18:10:21 +00:00
Steve Clay
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
2008-09-01 21:19:59 +00:00
Steve Clay
eebe132aed Added CSS/UriRewriter.php : untested!
Minify/ImportProcessor.php units need fixing
2008-08-30 07:25:37 +00:00
Steve Clay
560bcfd440 (more) Refactoring CSS/Linearizer.php to Minify/ImportProcessor.php 2008-08-30 06:40:27 +00:00
Steve Clay
b1747b13db Refactoring CSS/Linearizer.php to Minify/ImportProcessor.php 2008-08-30 06:30:07 +00:00
Steve Clay
85fdced508 Unit tests for Cache/File.php and Cache/Memcache.php
More consistent file naming
2008-08-30 03:29:49 +00:00