• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jasonlewis/basset: A better asset management package for Laravel.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jasonlewis/basset

开源软件地址(OpenSource Url):

https://github.com/jasonlewis/basset

开源编程语言(OpenSource Language):

PHP 100.0%

开源软件介绍(OpenSource Introduction):

No Longer Maintained

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.

Basset for Laravel 4

Build Status

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.

Installation

To get the latest version of Basset simply require it in your composer.json file.

"jasonlewis/basset": "dev-master"

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'

)

Documentation

View the official documentation.

Changes

v4.0.0 Beta 3

  • Split the collections and aliases into their own configuration files.
  • Filter method chaining with syntactical sugar by prefixing with and, e.g., andWhenProductionBuild().

v4.0.0 Beta 2

  • Added logging when assets, directories, and filters are not found or fail to load.
  • Allow logging to be enabled or disabled via configuration.
  • Warn users when cURL is being used to detect an assets group.
  • Allow an array of filters to be applied to an asset.
  • Added whenProductionBuild and whenDevelopmentBuild as filter requirements.
  • CssMin and JsMin are only applied on a production build and not on the production environment.
  • Added raw method as an alias to exclude.
  • Entire directory or collection can be set as raw so original path is used instead of assets being built.
  • Development builds only happen for a collection that is used on the loaded request.
  • Added rawOnEnvironment to serve the asset raw on a given environment or environments.

v4.0.0 Beta 1

  • Collections are displayed with basset_javascripts() and basset_stylesheets().
  • Simplified the asset finding process.
  • Can no longer prefix paths with path: for an absolute path, use a relative path from public directory instead.
  • Requirements can be applied to filters to prevent application if certain conditions are not met.
  • Filters can find any missing constructor arguments such as the path to Node, Ruby, etc.
  • Default application collection is bundled.
  • basset:compile command is now basset:build.
  • Old collection builds are cleaned automatically but can be cleaned manually with basset --tidy-up.
  • Packages can be registered with Basset::package() and assets can be added using the familiar namespace syntax found throughout Laravel.
  • Csso support with CssoFilter.
  • Fixed issues with UriRewriteFilter.
  • Development collections are pre-built before every page load.
  • Build and serve pre-compressed collections.
  • Use custom format when displaying collections.
  • Added in Blade view helpers: @javascripts, @stylesheets, and @assets.
  • Assets maintain the order that they were added.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap