Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Refactored and simplified Sprockets asset caching #153

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

Conversation

marcusmateus
Copy link

Note: All the features still pass and the only two spec failures were there prior to my changes. If I have a chance I will dig into fixing them as well later.

 * Allows for manipulation of the Sprockets::Environment for
    things like adding/removing pre/postprocessors from spec_helper.rb
 * Also, fixed specs that were failing on files_list.rb when
    run standalone due to missing require in file_checker.rb
 * Done primarily so postprocessors would work properly
    (i.e. sprockets-commonjs)
 * Potentially eliminates need for all the JHW specific template
    engines, except NilTemplate
@marcusmateus
Copy link
Author

I went ahead and removed the JHW specific template engines and their specs. All the features still pass and specs are in the same state.

I did just notice, however, that with my current approach coffeescript caching can not be turned off anymore so that the JS was inlined. I'm not really sure that was all that useful, but it could be added back in... and not just for coffeescript like before. Let me know if you would like to see it back in.

Also, forgot to say thanks for all your hard work on JHW... much appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant