Welcome to copyDir
copyDir is a simple ruby script for compass to copy one or more folders to one or more different locations.
How to install?
- Install Compass
$ gem update --system
$ gem install compass
- Install copyDir
$ gem install copyDir
- Require it in your config.rb
require 'copyDir'
- That's it!
How to use it?
Open up your config.rb, call copyDir and start watching your project with Compass!
CopyDir.new([images_dir, javascripts_dir], ["path/to/folder1", "path/to/folder2"])
An example config.rb file would look like the following:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
require 'copyDir'
CopyDir.new([images_dir, javascripts_dir], ["path/to/folder1", "path/to/folder2"])