2017 © Pedro Peláez
 

library beverage-less

Less compiler module for Beverage task runner

image

awakenweb/beverage-less

Less compiler module for Beverage task runner

  • Monday, October 27, 2014
  • by awakenweb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

beverage-less

Less compiler module for Beverage task runner, (*1)

Prerequisites

Install

Add this to your composer.json file:, (*2)

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

Configuration

In your drinkmenu.php file, add the following task:, (*3)

<?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 :, (*4)

  • importPath : tells the Less compiler where to search for when it encounters an import directive., (*5)

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

Contributing

Bugs, (*7)

  • 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., (*8)

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

Security vulnerabilities, (*10)

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

New Features, (*11)

  • 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., (*12)

  • 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., (*13)

Contributors

  • Main developer: __Mathieu SAVELLI__ (_mathieu.savelli@awakenweb.fr_)

License

Beverage and its official modules are released under the MIT License, (*14)

The Versions

27/10 2014

dev-master

9999999-dev

Less compiler module for Beverage task runner

  Sources   Download

MIT

The Requires

 

task less runner