awakenweb/beverage-less

This package is abandoned and no longer maintained. No replacement package was suggested.

Less compiler module for Beverage task runner

dev-master 2014-10-27 15:10 UTC

This package is not auto-updated.

Last update: 2019-02-20 18:16:12 UTC


README

Less compiler module for Beverage task runner

Prerequisites

Install

Add this to your composer.json file:

{
    "require": {
        "awakenweb/beverage-less": "dev-master"
    }
}

Configuration

In your drinkmenu.php file, add the following task:

<?php

use Awakenweb\Beverage\Beverage;
use Awakenweb\BeverageLess\Less;

function defaultTask()
{
    less();
}

function less()
{
    Beverage::files('main.less', ['less'])
            ->then(new Less('less', Less::LESSJS))
            ->destination('build/css');
}

Options

The Less class accepts 2 parameters :

  • importPath : tells the Less compiler where to search for when it encounters an import directive.

  • formatter : choose from the 3 available formatters : Less::LESSJS, Less::COMPRESSED, or Less::NORMAL.

Contributing

Bugs

  • If you found a bug and feel confident enough to correct it, please send a pull request with your bugfix and a unit test to identify the bug.

  • If you can't correct the bug by yourself, please fill an issue on this Github repository.

Security vulnerabilities

  • If you think you found a security vulnerability in this package, please contact Mathieu SAVELLI by email before doing anything else.

New Features

  • Before sending a Pull Request for a new feature you want to add directly to the Beverage codebase, please contact Mathieu SAVELLI by email. If the feature is found to be a good fit for Beverage, you are free to make a pull request.

  • If you like this package, the best thing you can do is to provide new awesome modules for Beverage and notify me. I'll add them to this readme.

Contributors

License

Beverage and its official modules are released under the MIT License