1
0
mirror of https://github.com/mrclay/minify.git synced 2025-03-12 08:30:18 +01:00

637 Commits

Author SHA1 Message Date
Elan Ruusamäe
005dc26e22 tests: skip rather than fail if nailgun.jar is missing 2016-12-06 17:11:23 +02:00
Elan Ruusamäe
ed209f9a84 remove var_dump debug from test output 2016-12-06 17:11:23 +02:00
Elan Ruusamäe
8fe915f486 test $jscomp polyfill output 2016-12-06 17:11:04 +02:00
Elan Ruusamäe
6a330d9091 pass any option to closure compiler 2016-12-06 16:59:36 +02:00
Elan Ruusamäe
8949df33dd add testcase for js minify that produces $jscomp polyfills
with recent closure compiler default input language has changed from ES3 to ES6 produces $jscomp polyfills
2016-12-06 14:46:46 +02:00
Elan Ruusamäe
b8c79ac8d4 Minify: add details to ContentType mismatch errors 2016-11-02 15:53:15 +02:00
Elan Ruusamäe
b31ddbf4c1 add missing .scss to css type map. #549 2016-10-17 15:14:56 +03:00
Elan Ruusamäe
74042c87ad allow .scss via f= param. #549 2016-10-17 14:22:30 +03:00
Steve Clay
8b965059a1 Merge pull request #552 from mrclay/glensc-phpcs-psr2
phpcs: enable psr2 & style fixes
2016-10-16 20:53:10 -04:00
Steve Clay
16c811cd93 Big style cleanup 2016-10-16 15:13:38 -04:00
Elan Ruusamäe
5fb7ea1ed1 phpcs: enable psr2 2016-10-16 18:51:49 +03:00
Elan Ruusamäe
0cc631c5a9 php-cs fixes
1) Minify.php (return)
   2) Minify/Env.php (return)
   3) Minify/JS/JShrink.php (return)
   4) Minify/HTML/Helper.php (return)
   5) Minify/Logger/LegacyHandler.php (unused_use)
   6) Minify/Lines.php (return)
   7) Minify/Controller/Files.php (unused_use)
   8) Minify/ControllerInterface.php (unused_use)
   9) Minify/Cache/File.php (return)
2016-10-16 16:44:58 +03:00
Elan Ruusamäe
2809e3c2eb Merge pull request #550 from glensc/lessphp-cache
lessphp: use updated timestamp from cache
2016-10-16 13:51:17 +03:00
Elan Ruusamäe
a9891a031c Merge pull request #549 from mrclay/scssphp
add scss support via leafo/scssphp
2016-10-16 13:50:58 +03:00
Elan Ruusamäe
8d4a90e83f Merge pull request #548 from mrclay/checkAllowDirs
add checkAllowDirs to sourceFactoryOptions
2016-10-16 13:50:25 +03:00
Elan Ruusamäe
035183b2b8 cacheIsStale is not public 2016-10-13 14:40:21 +03:00
Elan Ruusamäe
72dd4db37a calculate lastmodified to be maximum accurate
the time() may be incorrect if there's slight delay between file modify and cache write. but as file modify is what is important, rely on that.

also needed to use different cache file because the format change.
2016-10-13 12:50:27 +03:00
Elan Ruusamäe
78d5921f91 lessphp: use updated timestamp from cache
no need to calculate the timestamp ourselves each time the calculated value already present in cache object
2016-10-13 12:40:48 +03:00
Elan Ruusamäe
2bd69ca5b1 test scssphp functionality
tested cache dependencies
2016-10-13 12:21:09 +03:00
Elan Ruusamäe
3014900cd4 add base directory of input file to import path
this is needed for @import to be able to resolve included files
2016-10-13 12:20:50 +03:00
Elan Ruusamäe
ae1fdf4a30 use lower scssphp version for php 5.3 compatibility
the functionality we are using is present
2016-10-13 12:18:52 +03:00
Elan Ruusamäe
b5a0ed3e3a ci: bump php version so deps could be installed on travis for php 5.3 2016-10-12 17:01:37 +03:00
Elan Ruusamäe
fdc69a369e add scss support via leafo/scssphp 2016-10-12 16:39:00 +03:00
Elan Ruusamäe
9ca1bc9e74 add checkAllowDirs to sourceFactoryOptions
needed to be able to specify the option via config
2016-10-12 16:34:39 +03:00
Elan Ruusamäe
60b89dcc0d disable server info by default again
mistakenly enabled in 9370e96
2016-09-20 23:36:24 +03:00
Steve Clay
a0e781e278 Merge pull request #505 from glensc/jshrink
add jshrink thin wrapper
2016-06-28 14:58:24 -04:00
Steve Clay
578f99d6d2 Merge branch '2.x' 2016-06-28 14:53:49 -04:00
Steve Clay
02c859b01b Merge pull request #532 from mrclay/urls_in_lines
Improve Minify_Lines algorithm and add tests
2016-06-28 14:52:14 -04:00
Steve Clay
49bd730e1a Merge pull request #537 from mrclay/sync_jsmin
Sync JSMin with mrclay/jsmin-php
2016-06-28 14:51:40 -04:00
Steve Clay
22fb644834 Merge branch '2.x' 2016-06-27 16:13:50 -04:00
Steve Clay
850e81c416 Merge pull request #540 from Dargmuesli/2.x
Prevent false mod_rewrite error
2016-06-24 23:39:40 -04:00
Jonas Thelemann
b37d837ff9 Prevent false mod_rewrite error
If Google's Closure Compiler API is enabled, rewriteTest.js is served as
"1;" instead of "1". Therefore the "Note: Your webserver does not seem
to support mod_rewrite (used in /min/.htaccess). Your Minify URIs will
contain '?', which may reduce the benefit of proxy cache servers." is
wrong. This is a simple workaround.
2016-06-25 01:19:44 +02:00
Steve Clay
42b18c1e2a Sync JSMin with mrclay/jsmin-php 2016-06-08 19:00:35 -04:00
Steve Clay
31518971be Merge pull request #501 from glensc/minify-env
do not require SERVER_SOFTWARE being present in $server
2016-06-08 10:14:02 -04:00
Steve Clay
2045731d60 Improve Minify_Lines algorithm and add tests
Fixes #531
Fixes #534
2016-05-19 15:14:27 -04: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
7aac6792bc Merge pull request #530 from mrclay/merge2x
Merge 2.x into master
2016-05-12 11:37:14 -04:00
Steve Clay
6f94b78135 Remove stuff accidentally left in merge 2016-05-12 11:14:38 -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
02e7358538 Merge pull request #528 from mrclay/version
Minify::VERSION tracks only the major version
2016-05-12 10:46:17 -04:00
Steve Clay
0db2af8741 Minify::VERSION tracks only the major version 2016-05-12 10:45:58 -04:00
Evgeny Mazovetskiy
6a2995f932 list allowDirs in exception to simplify debugging 2016-05-12 10:43:31 -04:00
Steve Clay
b38ed79042 Merge pull request #524 from mrclay/mrclay-mrclay-patch-1
Use $min_libPath in examples and move it within config.php
2016-05-12 10:28:59 -04:00
Steve Clay
bb6e4d5f2e Merge pull request #519 from mrclay/clip_path_517
No longer alters inline SVG id URLs
2016-04-18 21:13:51 -04:00
Steve Clay
28197576c6 Use $min_libPath in examples and move it within config.php
Fixes #522
2016-04-18 21:12:12 -04:00
Steve Clay
b7cf3808d7 Improves README and add install doc page
Shows how to install as a composer dependency
2016-04-02 11:46:29 -04:00
Steve Clay
cff094781b No longer alters inline SVG id URLs
Fixes #517
2016-03-16 18:32:47 -04:00
Elan Ruusamäe
5da955966b fix branch name. refs ce2b8d6 2016-03-13 14:56:14 +02:00
Elan Ruusamäe
0eb2cfe78d Update README.md
fixes from googlecode migration
2016-03-13 14:55:23 +02:00
Elan Ruusamäe
ce2b8d694c composer: add 3.0 branch alias
so could use in deps mrclay/minify: ~3.0
2016-03-13 14:32:24 +02:00