Matthias Mullie
2279df75f8
Operate on arrays when resolving relative paths
...
Instead of relying on do/while loops & regular expressions.
2014-10-13 08:43:55 +02:00
Matthias Mullie
49f9db082c
Add scrutinizer badge
2014-10-12 22:42:00 +02:00
Matthias Mullie
b2251b4ea1
Small fixes discovered by scrutinizer
2014-10-12 22:41:48 +02:00
Matthias Mullie
07c1bd1e3a
Test common methods
...
Meanwhile also fix appending of multiple JS sources:
they should be split by line feed.
2014-10-12 22:27:53 +02:00
Matthias Mullie
38ad5cf0de
Add tests for relative paths in CSS
2014-10-12 22:07:59 +02:00
Matthias Mullie
0b44d82991
Add test for absolute path in CSS
...
Meanwhile fixed conditions to import file; shouldn't be
&=, as that doesn't short-circuit the and (it still executes)
2014-10-12 22:01:13 +02:00
Matthias Mullie
acfc15b0de
Make import media queries work
2014-10-12 21:55:30 +02:00
Matthias Mullie
6f36512148
Alternative workaround for regex requiring recent PCRE
2014-10-12 21:41:25 +02:00
Matthias Mullie
c782c473f9
Improve test coverage for CSS minifier
2014-10-12 21:10:22 +02:00
Matthias Mullie
cf03e4aa6a
Allow import conditions to be set
2014-10-12 20:53:33 +02:00
Matthias Mullie
b26d79a971
Specify type of array elements in phpdoc
2014-10-12 20:34:25 +02:00
Matthias Mullie
a4f1b392a6
Some more PSR-2 fixes
2014-10-12 20:30:08 +02:00
Matthias Mullie
380f0b0523
Minor cleanups/fixes
...
These didn't currently cause any issues, but needed fixing :)
2014-10-12 19:55:20 +02:00
Matthias Mullie
d9d5b0f804
Only 1 trim instead of 2
...
With less chars; we're guaranteed to only have \n or space
by that point.
2014-10-12 19:45:30 +02:00
Matthias Mullie
ed139866fe
Make 1 regex instead of a combination of regexes
...
And slightly fix it, adding test which it failed on:
numbers followed by var-like were incorrectly joined.
2014-10-12 19:41:32 +02:00
Matthias Mullie
eb60ec7964
Automatically make registered patterns match from string start
2014-10-12 18:02:37 +02:00
Matthias Mullie
f1b565bc99
Improve test coverage & remove redundant code
2014-10-12 17:42:22 +02:00
Matthias Mullie
ecd3dc8865
Hide build dir
2014-10-12 17:41:57 +02:00
Matthias Mullie
235f3aea75
Add coveralls badge
2014-10-12 10:37:54 +02:00
Matthias Mullie
85db14d29d
Get rid of another regular expression
2014-10-12 10:32:52 +02:00
Matthias Mullie
c1606f07e9
Add coveralls
2014-10-12 10:06:21 +02:00
Matthias Mullie
98f9efd5fc
Fix SyntaxError: identifier starts immediately after numeric literal
1.3.4
2014-10-11 02:06:09 +02:00
Matthias Mullie
da1b6a195e
Don't remove space between a+ ++b
1.3.3
2014-10-10 08:38:39 +02:00
Matthias Mullie
30a742f9d5
Make restore of extracted data much faster
...
We should'ne be doing the expensive regex-looping anymore if we're dealing with
known values.
2014-10-10 08:26:05 +02:00
Matthias Mullie
9f6493e06e
Add test for multiple /
2014-10-10 08:18:47 +02:00
Matthias Mullie
994d59c800
Remove redundant check for escaped backslash
...
Regex checking is now better, which is the only place a backslash could be escaped.
2014-10-10 08:18:21 +02:00
Matthias Mullie
768ef29037
Link to blog post
2014-10-09 18:13:01 +02:00
Matthias Mullie
52038b1380
Remove target test file, add .gitignore instead
...
Meanwhile cleaned up one of the tests to have valid CSS in there
2014-10-09 14:23:31 +02:00
Matthias Mullie
d113c81dd7
Update README
1.3.2
2014-10-09 10:58:26 +02:00
Matthias Mullie
ab4ff96048
Fix issue with finding (potentially escaped) regexes
2014-10-09 10:56:39 +02:00
Matthias Mullie
fb81d0fd43
Let travis install vendors prior to attempting to run test suite
2014-10-09 09:11:35 +02:00
Matthias Mullie
2ee3b4ed70
Properly organize tests
2014-10-09 09:08:21 +02:00
Matthias Mullie
c4a59c904e
Make code respect PSR-4
2014-10-09 08:56:14 +02:00
Matthias Mullie
cf9e90ba4a
Use PSR4 autoloader; move code to src/
2014-10-09 08:38:58 +02:00
Matthias Mullie
34414986c7
Ignore some IDE/OS mess
2014-10-08 17:10:04 +02:00
Matthias Mullie
b186f98d32
Add badges
2014-10-08 17:03:29 +02:00
Matthias Mullie
4937535069
Get rid of license in PHPDoc, move into separate file
2014-10-08 16:52:50 +02:00
Matthias Mullie
6db649b378
Get rid of (outdated) version number in PHPDoc
2014-10-08 16:50:22 +02:00
Matthias Mullie
cdb859b3c3
Add PHP5.6 as Travis target
2014-10-08 16:37:31 +02:00
Matthias Mullie
76734ac3f7
Add PHPUnit dist file, move test files around
2014-10-08 16:34:49 +02:00
Matthias Mullie
130935e1e9
Add Travis-CI
2014-10-08 16:18:45 +02:00
Matthias Mullie
670db0c30a
Remove $options param from README
...
That is no longer used; minify now always minifies as much as it can
2014-10-08 12:56:41 +02:00
Matthias Mullie
36b9b3b543
Fix \-as-division from being interpreted as regex
...
Fixes issue #14
1.3.1
2014-10-08 10:54:11 +02:00
Matthias Mullie
3750e33d49
Add tests for issue #15
2014-10-08 10:20:42 +02:00
Matthias Mullie
3135b0fcb2
Other approach: don't add semicolons, just keep newline when in doubt
1.3.0
2014-10-08 09:57:41 +02:00
Matthias Mullie
9fa994fda6
Add comma as operator
2014-10-07 19:49:16 +02:00
Matthias Mullie
3a8ebeb551
Fix JS minifier's construct with optional args
2014-10-07 18:42:49 +02:00
Matthias Mullie
6a864c8c7c
Major JS minifier rewrite
2014-10-07 18:21:22 +02:00
Matthias Mullie
b711882b23
Some more improvements
2013-12-27 02:12:53 +01:00
Matthias Mullie
30797d8420
Improved JS minifier
...
Meanwhile also (somewhat forced by improving JS minifier) removed minifier
options. They were kind of useless anyway, though; why would one not minify
completely :)
2013-12-27 00:00:46 +01:00