dev-master
9999999-devScss and Compass compiler module for Beverage task runner
MIT
The Requires
task sass compass runner
Wallogit.com
2017 © Pedro Peláez
Scss and Compass compiler module for Beverage task runner
Scss and Compass compiler module for Beverage task runner, (*1)
Add this to your composer.json file:, (*2)
{
"require": {
"awakenweb/beverage-scss": "dev-master"
}
}
In your drinkmenu.php file, add the following task:, (*3)
<?php
use Awakenweb\Beverage\Beverage;
use Awakenweb\BeverageScss\Scss;
function defaultTask()
{
scss();
}
function scss()
{
Beverage::files('main.scss', ['scss'])
->then(new Scss('scss', Scss::USE_COMPASS, Scss::NESTED))
->destination('build/css');
}
The Scss class accepts 3 parameters :, (*4)
importPath : tells the Scss compiler where to search for when it encounters an @include or @import directives., (*5)
useCompass : self-explanatory. True or False. You can use Scss::USE_COMPASS or Scss::NO_COMPASS for better maintenability., (*6)
formatter : choose from the 4 available formatters : Scss::NESTED, Scss::COMPRESSED, Scss::CRUNCHED, or Scss::NORMAL. (CRUNCHED is equivalent to COMPRESSED but also stripes CSS comments), (*7)
Bugs, (*8)
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., (*9)
If you can't correct the bug by yourself, please fill an issue on this Github repository., (*10)
Security vulnerabilities, (*11)
New Features, (*12)
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., (*13)
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., (*14)
Beverage and its official modules are released under the MIT License, (*15)
Scss and Compass compiler module for Beverage task runner
MIT
task sass compass runner