Minify code a before deployment
Installation:
"require-dev": {
"baimurzaev/minify": "^1.1.0"
}
Example config file: minify.hawk.xml
<?xml version="1.0"?>
<config name="Minify">
<description>Minify code</description>
<pathFrom>src</pathFrom>
<pathTo>deploy</pathTo>
<extensions>
<ext>php</ext>
<ext>js</ext>
<ext>css</ext>
</extensions>
</config>
pathFrom
- the path to your project folder.pathTo
- the path to the folder.extensions
- types of files to be minify
"scripts": {
"deploy": [
"@minify"
],
"minify": "-all"
}
After you can make a deploy:
$ composer deploy
You can execute the test suite. You'll need to clone the repository and install the dependencies.
$ git clone https://github.com/baimurzaev/minify
$ composer install
$ composer test
Please, if you find errors, write to me about it. You can also do pull request.
- Fork this repository
- Create a new branch for each feature
- Send a pull request from each feature branch