Skip to content

baimurzaev/minify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minify

Software License Latest Version

Minify code a before deployment

minify

Quickstart

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

Add to your composer:

  "scripts": {
    "deploy": [
      "@minify"
    ],
    "minify": "-all"
  }

After you can make a deploy:

$ composer deploy

Tests

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

Contributing

Please, if you find errors, write to me about it. You can also do pull request.

Pull Requests

  1. Fork this repository
  2. Create a new branch for each feature
  3. Send a pull request from each feature branch

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages