2017 © Pedro Peláez
 

library less-one

Automatically creates a single .css file from a collection of .less files using lessphp

image

zanemiller/less-one

Automatically creates a single .css file from a collection of .less files using lessphp

  • Friday, January 17, 2014
  • by zanemiller
  • Repository
  • 1 Watchers
  • 0 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

LessOne

Automatically creates a single .css file from a collection of .less files using lessphp, (*1)

Much thanks to jtgrimes for the less4laravel packages, upon which most of this package is based: https://github.com/jtgrimes/less4laravel, (*2)

More thanks due to leafo for the lessphp packages, which this package would be useless without: https://github.com/leafo/lessphp, (*3)

Installation

Add zanemiller/less-one as a requirement to composer.json:, (*4)

{
    "require": {
        "zanemiller/less-one": "0.2.*"
    }
}

Run the composer update utility with composer update or install with composer install, (*5)

You now register the package with Laravel. Open app/config/app.php and add find the providers section and add:, (*6)

'Zanemiller\LessOne\LessOneServiceProvider'

Next find the aliases section and add:, (*7)

    'LessOne' => 'Zanemiller\LessOne\LessOneFacade'

To use LessOne with the default settings you will also have to create three folders (if they do not already exist in your project)., (*8)

In the /app folder create two folders called css and less respectivly., (*9)

Finally in /public create a folder called css, (*10)

So your final file structure should include:, (*11)

/app
    /css
    /less
/public
    /css

Configuration

First publish a copy of the configuration file with Aritisan:, (*12)

$ php artisan config:publish zanemiller/less-one

The settings files can now be found in /app/config/packages/zanemiller/less-one/config.php, (*13)

The details of the configuration file can be found in: https://github.com/ZaneMiller/LessOne/wiki/Usage, (*14)

Usage

LessOne couldn't be easier to use simply call:, (*15)

LessOne::make()

Where you want the <link> tag to be inserted in your view., (*16)

The Versions

17/01 2014

dev-master

9999999-dev

Automatically creates a single .css file from a collection of .less files using lessphp

  Sources   Download

MIT

The Requires

 

by Zane Miller

laravel less

13/01 2014

v0.2.0

0.2.0.0

Automatically creates a single .css file from a collection of .less files using lessphp

  Sources   Download

MIT

The Requires

 

by Zane Miller

laravel less