Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rake tasks for asset packaging with Barista, Compass and Jammit

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 Rakefile
Octocat-spinner-32 asset_tasks.gemspec


Rake tasks for asset compiling and packaging using Barista, Compass and Jammit


Configure Barista, Compass and Jammit according to their instructions and add the following line to your Gemfile gem 'asset_tasks'

Then run bundle install and you're good to go.

Rake Tasks

  • assets:clear - Clear all assets
  • assets:compile - Compile all assets
  • assets:package - Compile and package all assets
  • barista:clear - Clear Barista assets
  • barista:compile - Compile Barista assets (alias for barista:brew)
  • compass:clear - Clear Compass assets
  • compass:compile - Compile Compass assets
  • jammit:clear - Clear Jammit assets
  • jammit:package - Package Jammit assets

Optional pre-commit Hook

The assets:commit:hook task is provided as a convenient git pre-commit hook. To use it, add the following to .git/hooks/pre-commit and make the file executable. #!/bin/sh rake assets:commit:hook -s

Note that the commit hook doesn't work for some reason if you have git sources in your Gemfile

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.


Copyright (c) 2010 Steven Hancock. See MIT-LICENSE for details.

Something went wrong with that request. Please try again.