Skip to content

Instantly share code, notes, and snippets.

@gistwebdev
Last active December 18, 2015 10:49
Show Gist options
  • Save gistwebdev/5771258 to your computer and use it in GitHub Desktop.
Save gistwebdev/5771258 to your computer and use it in GitHub Desktop.
basset config test
'collections' => array(
'public' => function($collection)
{
// Switch to the stylesheets directory.
$directory = $collection->directory('assets/stylesheets', function($collection)
{
$collection->add('less/bootstrap/bootstrap.less')->apply('Less');
$collection->add('less/bootstrap/responsive.less')->apply('Less');
$collection->add('less/app.less')->apply('Less');
});
$directory->apply('CssMin');
$directory->apply('UriRewriteFilter');
// Switch to the javascripts directory.
$directory = $collection->directory('assets/javascripts', function($collection)
{
$collection->javascript('//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js');
$collection->requireDirectory('bootstrap');
});
$directory->apply('JsMin');
},
'admin' => function($collection)
{
// Switch to the stylesheets directory.
$directory = $collection->directory('assets/stylesheets', function($collection)
{
$collection->stylesheet('less/bootstrap/bootstrap.less')->apply('Less');
$collection->stylesheet('less/bootstrap/responsive.less')->apply('Less');
$collection->stylesheet('wysihtml5/prettify.css');
$collection->stylesheet('wysihtml5/bootstrap-wysihtml5-0.0.2.css');
$collection->stylesheet('less/app.less')->apply('Less');
});
$directory->apply('CssMin');
$directory->apply('UriRewriteFilter');
$directory = $collection->directory('assets/javascripts', function($collection)
{
$collection->javascript('//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js');
$collection->javascript('wysihtml5/wysihtml5-0.3.0.js');
$collection->javascript('prettify.js');
$collection->requireDirectory('bootstrap');
$collection->javascript('wysihtml5/bootstrap-wysihtml5.js');
})->apply('JsMin');
}
// 'application' => function($collection)
// {
// // Switch to the stylesheets directory and require the "less" and "sass" directories.
// // These directories both have a filter applied to them so that the built
// // collection will contain valid CSS.
// $directory = $collection->directory('assets/stylesheets', function($collection)
// {
// $collection->requireDirectory('less')->apply('Less');
// $collection->requireDirectory('sass')->apply('Sass');
// $collection->requireDirectory();
// });
// $directory->apply('CssMin');
// $directory->apply('UriRewriteFilter');
// // Switch to the javascripts directory and require the "coffeescript" directory. As
// // with the above directories we'll apply the CoffeeScript filter to the directory
// // so the built collection contains valid JS.
// $directory = $collection->directory('assets/javascripts', function($collection)
// {
// $collection->requireDirectory('coffeescripts')->apply('CoffeeScript');
// $collection->requireDirectory();
// });
// $directory->apply('JsMin');
// }
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment