2017 © Pedro Peláez
 

symfony-bundle gulp-buster-bundle

Symfony Bundle to integrate gulp-buster npm package for cache busting

image

ajaxray/gulp-buster-bundle

Symfony Bundle to integrate gulp-buster npm package for cache busting

  • Sunday, February 14, 2016
  • by ajaxray
  • Repository
  • 2 Watchers
  • 4 Stars
  • 334 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

GulpBusterBundle

Build Status Coverage Status Latest Stable Version Total Downloads License SensioLabsInsight, (*1)

When using gulp to manage assets of a Symfony application, this Bundle will help in cache busting with help of gulp-buster package., (*2)

Installation

Install the latest version with, (*3)

$ composer require ajaxray/gulp-buster-bundle

Then enable the bundle in AppKernel -
``` php <?php // app/AppKernel.php, (*4)

public function registerBundles() { $bundles = array( // ... new Ajaxray\GulpBusterBundle\GulpBusterBundle(), ); }, (*5)


## How to use Assuming you are using **[gulp-buster](https://www.npmjs.com/package/gulp-buster)** to generate hashes for your web assets (javascript, css, images etc. static resources). Now the next thing is using those hashes with your web assets. This bundle will make it easy by adding a Twig Filter. Here is how to use this filter in Twig views -

, (*6)


If a hash is found for this file, it will be appended as query string with it's url -

, (*7)


If no hash found for this file -

, (*8)


That's all :) ## Configuration By default, this bundle assumes the following paths - - busters.json (or any other name) file : `%kernel.root_dir%/../busters.json` - web dir: `%kernel.root_dir%/../web` - gulp dir (the dir of your gulpfile.js): `%kernel.root_dir%/..` If any/all of the above is different for you, you can configure from your `app/config/config.yml` file using following keys - ```yml gulp_buster: # if you've configured it to be in web dir busters_file: "%kernel.root_dir%/../web/busters.json" web_dir: "%kernel.root_dir%/relative/path/to/web/dir" gulp_dir: "%kernel.root_dir%/relative/path/to/dir"

The Versions

14/02 2016

dev-master

9999999-dev http://github.com/ajaxray/GulpBusterBundle

Symfony Bundle to integrate gulp-buster npm package for cache busting

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anis Uddin Ahmad

cache symfony3 workflow cachebuster symfony bundle revision webdev fingerprint web development revisioning fingerprinting cache buster gulpplugin symfony 2.8

14/02 2016

v1.0.1

1.0.1.0 http://github.com/ajaxray/GulpBusterBundle

Symfony Bundle to integrate gulp-buster npm package for cache busting

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anis Uddin Ahmad

cache symfony3 workflow cachebuster symfony bundle revision webdev fingerprint web development revisioning fingerprinting cache buster gulpplugin symfony 2.8

13/02 2016

v1.0.0

1.0.0.0 http://github.com/ajaxray/GulpBusterBundle

Symfony Bundle to integrate gulp-buster npm package for cache busting

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anis Uddin Ahmad

cache symfony3 workflow cachebuster symfony bundle revision webdev fingerprint web development revisioning fingerprinting cache buster gulpplugin symfony 2.8