Package Data | |
---|---|
Maintainer Username: | Chugga |
Maintainer Contact: | jason.lewis1991@gmail.com (Jason Lewis) |
Package Create Date: | 2014-01-21 |
Package Last Update: | 2014-06-23 |
Home Page: | http://jasonlewis.me/code/basset |
Language: | PHP |
License: | BSD-2-Clause |
Last Refreshed: | 2024-12-16 15:04:14 |
Package Statistics | |
---|---|
Total Downloads: | 1,180 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Basset is no longer being maintained by me (Jason Lewis). Appologies to those of you that have invested time into this package. Feel free to fork it if you feel the need but I strongly urged you to shift over to using Grunt to manage the compiling and concatenation of your assets.
Once again, I'm sorry, I just don't have the time and Grunt does an amazing job.
##UPDATE
I've (Tim Clark) recently begun doing some minor maintenance, keeping the package working.
Basset is a better asset management package for the Laravel framework. Basset shares the same philosophy as Laravel. Development should be an enjoyable and fulfilling experience. When it comes to managing your assets it can become quite complex and a pain in the backside. These days developers are able to use a range of pre-processors such as Sass, Less, and CoffeeScript. Basset is able to handle the processing of these assets instead of relying on a number of individual tools.
To get the latest version of Basset simply require it in your composer.json
file.
"chugga/basset": "4.0.*@dev"
You'll then need to run composer install
to download it and have the autoloader updated.
Note that once Basset has a stable version tagged you should use a tagged release instead of the master branch.
Once Basset is installed you need to register the service provider with the application. Open up app/config/app.php
and find the providers
key.
'providers' => array(
'Basset\BassetServiceProvider'
)
Basset also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases
key of your app/config/app.php
file.
'aliases' => array(
'Basset' => 'Basset\Facade'
)
View the official documentation.
and
, e.g., andWhenProductionBuild()
.whenProductionBuild
and whenDevelopmentBuild
as filter requirements.CssMin
and JsMin
are only applied on a production build and not on the production environment.raw
method as an alias to exclude
.rawOnEnvironment
to serve the asset raw on a given environment or environments.basset_javascripts()
and basset_stylesheets()
.path:
for an absolute path, use a relative path from public directory instead.application
collection is bundled.basset:compile
command is now basset:build
.basset --tidy-up
.Basset::package()
and assets can be added using the familiar namespace syntax found throughout Laravel.Csso
support with CssoFilter
.UriRewriteFilter
.@javascripts
, @stylesheets
, and @assets
.