Skip to content

Conversation

paulRbr
Copy link

@paulRbr paulRbr commented Oct 22, 2013

Hello!

For javascript code written in YUI modules I wanted to have my assets automaticaly built using YUI's shifter each time the specified asset is missing or when it is changed.

Feature Added

By adding the two following lines in the assets.yml config file of Jammit

build_assets: true
javascript_builder: shifter 

You will have your assets built with Shifter each time Yammit is loaded. This build process will occur only if the asset file is missing or if the file has been modified (in the git sense).

Limitation

As we need to know the name of the YUI module if it is missing, we need the full module path in the assets configuration. Therefore any assets glob defined with a wildcard (*.js) will NOT be shifted.

Suggestions?

This is a specific development for our team's app that relies heavily on YUI Shifter.
I will therefore leave this pull request open to any discussion/suggestion/improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant