2017 © Pedro Peláez
 

library lessy

Lessy is a simple and lean LESS compiler for Laravel

image

zizaco/lessy

Lessy is a simple and lean LESS compiler for Laravel

  • Friday, April 4, 2014
  • by Zizaco
  • Repository
  • 1 Watchers
  • 23 Stars
  • 14,461 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 4 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Lessy (Laravel4 Package)

Confide Poster, (*1)

ProjectStatus, (*2)

Lessy is a simple and lean LESS compiler for Laravel., (*3)

In summary, Lessy will compile the files contained in app/less to the public/asset/css directory respecting any existing directory structure. For example: if you have app/less/admin/panel.less lessy will compile it to public/asset/css/admin/panel.css when the application receives a request. You can change the input and output directories trough configuration (see below)., (*4)

The automatic compilation occurs only if the output file doesn't exist or it's an older version than the input file., (*5)

Important: Note that the automatic compilation does not occur when the application is in 'production' environment. So make sure to change the application environment to 'local' or something that is not 'production' if you need Lessy to automagically compile your LESS files., (*6)

Features

Current: - Automagically compiles LESS files when not in production - Respects directory structure when compiling - Compile LESS files trough artisan lessy:compile, (*7)

Quick start

Required setup

In the require key of composer.json file add the following, (*8)

"zizaco/lessy": "dev-master"

Run the Composer update comand, (*9)

$ composer update

In your config/app.php add 'Zizaco\Lessy\LessyServiceProvider' to the end of the $providers array, (*10)

'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Zizaco\Lessy\LessyServiceProvider',

),

You are ready to go! Your application will now compile LESS files when needed. Remember that this does not occur in production environment., (*11)

Configuration (Optional)

By default, Lessy will consider the directory app/less as the input and public/assets/css for the output. But if you wish to change these values ​​simply publish the package config files:, (*12)

$ php artisan config:publish zizaco/lessy

and define the origin and destination keys in config/packages/zizaco/lessy/config.php. Example:, (*13)

// config/packages/zizaco/lessy/config.php

// Paths should be relative to app folder.
'origin'        => 'mylessfiles',
'destination'   => '../public/mycss',

The automatic compilation does not occur when the application is in 'production' environment. So make sure to change the application environment to 'local' or something that is not 'production' if you need Lessy to automagically compile your LESS files., (*14)

Console usage

If for some reason you need to force the compilation of LESS files (ex: in production environment), its possible through the command:, (*15)

$ php artisan lessy:compile

License

Lessy is a free software distributed under the terms of the MIT license, (*16)

Aditional information

Any questions, feel free to contact me., (*17)

The Versions

04/04 2014

dev-master

9999999-dev

Lessy is a simple and lean LESS compiler for Laravel

  Sources   Download

MIT

The Requires

 

laravel illuminate less scss

17/04 2013

v0.7

0.7.0.0

Lessy is a simple and lean LESS compiler for Laravel

  Sources   Download

MIT

The Requires

 

laravel illuminate less scss

17/01 2013

v0.6.1

0.6.1.0

Lessy is a simple and lean LESS compiler for Laravel

  Sources   Download

MIT

The Requires

 

laravel illuminate less scss

17/01 2013

v0.6

0.6.0.0

Lessy is a simple and lean LESS compiler for Laravel

  Sources   Download

MIT

The Requires

 

laravel illuminate less scss

17/01 2013

v0.5.1

0.5.1.0

Lessy is a simple and lean LESS compiler for Laravel

  Sources   Download

MIT

The Requires

 

laravel illuminate less scss

17/01 2013

v0.5

0.5.0.0

Lessy is a simple and lean LESS compiler for Laravel

  Sources   Download

MIT

The Requires

 

laravel illuminate less scss