minify
minify copied to clipboard
For easier command line using, I've added a new command with symfony/console
The original command line tools cannot directly specify an output file. It's painful in some cases. So I added a new command with symfony/console. Then you can use it like this:
# for js files:
minify foo.js -o foo.min.js
# for css files:
minify foo.css -o foo.min.css
Hope you will like it and accept it.
p.s. In previous PL, PHP 5.4 complains... So I've change the symfony/console's version to >=2.0. It should be OK now.
Current coverage is 100.00%
Merging #106 into master will not affect coverage as of
43579cd
@@ master #106 diff @@
======================================
Files 3 3
Stmts 380 380
Branches 0 0
Methods 39 39
======================================
Hit 380 380
Partial 0 0
Missed 0 0
Review entire Coverage Diff as of
43579cdPowered by Codecov. Updated on successful CI builds.
Hey @Clarence-pan, thanks a lot for this PR!
Any chance you could also include some tests for the MinifyCommand class?
Bonus points if you could also update bin/minifycss & bin/minifyjs to also use the same code :)