minify icon indicating copy to clipboard operation
minify copied to clipboard

For easier command line using, I've added a new command with symfony/console

Open Clarence-pan opened this issue 9 years ago • 2 comments

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.

Clarence-pan avatar Apr 20 '16 11:04 Clarence-pan

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 43579cd

Powered by Codecov. Updated on successful CI builds.

codecov-io avatar Apr 20 '16 11:04 codecov-io

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 :)

matthiasmullie avatar Apr 27 '16 11:04 matthiasmullie