1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-12 17:14:24 +02:00
Commit Graph

15 Commits

Author SHA1 Message Date
Elan Ruusamäe
eff278193b Apply php-cs-fixer new rules 2019-12-11 17:06:18 +02:00
Elan Ruusamäe
5fb7ea1ed1 phpcs: enable psr2 2016-10-16 18:51:49 +03:00
Elan Ruusamäe
fdc69a369e add scss support via leafo/scssphp 2016-10-12 16:39:00 +03:00
Steve Clay
de39966e9c Makes sure all file/dir paths are normalized to prepare for comparing.
Particularly the system docRoot and currentDir values passed to the URI
rewriter and the allowDirs check.
2016-05-12 13:29:54 -04:00
Steve Clay
865946c0ed Merge branch '2.x' into merge2x
Conflicts:
	.gitignore
	HISTORY.txt
	README.md
	config.php
	docs/CookBook.wiki.md
	docs/CustomSource.wiki.md
	lib/Minify/CSS/UriRewriter.php
	min/lib/DooDigestAuth.php
	min/lib/FirePHP.php
	min/lib/JSMinPlus.php
	min/lib/Minify/Controller/Base.php
	min/lib/Minify/Loader.php
	min/lib/Minify/Logger.php
2016-05-12 11:03:16 -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
Elan Ruusamäe
14bde12d3b changes as per comments
https://github.com/mrclay/minify/pull/496#discussion_r50247608
2016-01-22 08:50:37 +02:00
Dmitry Demidovsky
3fcb383f49 Changed allowDirs comparsion logic #497 2015-12-05 22:58:00 +03:00
Dmitry Demidovsky
3f02443c1f Added rtrim, removed preg_match 2015-12-05 17:51:58 +03:00
Dmitry Demidovsky
da70e92cc1 normalize paths before checking allowed dirs 2015-12-04 14:02:02 +03: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
e596b35fc4 Collapse "min" into project root and get unit tests working.
Fixes #472
2015-09-28 15:39:25 -04:00