0.0
No commit activity in last 3 years
No release in over 3 years
RakeAssets is a small Ruby Gem that contains some simple configurable Rake Tasks and dependancies for making compiling assets faster and easier.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

RakeAssets

Build Status Dependency Status

RakeAssets is a small Ruby Gem that contains some simple configurable Rake Tasks and dependancies for making compiling assets using Sprockets faster and easier.

How To Use

Install the gem

gem install rake-assets

Add a require to your Rakefile

require 'rake_assets/rake'

Now you will have some rake tasks to compress and minify your CSS and Javascript assets.

rake -T

rake assets:compile       # Compiles both CSS and Javascript
rake assets:check         # Checks that the configuration paths are valid
rake assets:compile_js    # Compiles Javascript files into a single minified Javascript file
rake assets:compile_css   # Compiles CSS files into a single minified CSS file

To configure them just initialize a new instance of RakeAssets to override the default paths in your Rakefile.

@rake_assets = RakeAssets.new js_path:      'app/assets/scripts',                        # Location of application.js
                              js_compiled:  "#{Dir.pwd}/public/scripts/application.js",  # Path to compile JS too
                              css_path:     'app/assets/styles',                         # Path of application.css file
                              css_compiled: "#{Dir.pwd}/public/css/style.css",           # Path to compile CSS too

License

WTFPL © 2012 Nick Barth