Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shifter for YUI module packaging integrated in Rails #255

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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