Skip to content

Commit

Permalink
Use Rake to generate Bourbon for non-Rails use.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 6, 2011
1 parent 1d187fe commit a647cff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
12 changes: 12 additions & 0 deletions Rakefile
@@ -1,2 +1,14 @@
require 'bundler'
Bundler::GemHelper.install_tasks

directory 'bourbon/lib'

desc "Generate bourbon directory for use outside Rails"
task :generate => 'bourbon/lib' do
FileUtils.cp_r(Dir['app/assets/stylesheets/*'], 'bourbon/')
FileUtils.cp_r(Dir['lib/*'], 'bourbon/lib/')

FileUtils.rm_r('bourbon/lib/tasks')
FileUtils.rm('bourbon/lib/bourbon/engine.rb')
FileUtils.rm('bourbon/lib/bourbon/version.rb')
end
22 changes: 0 additions & 22 deletions generate-bourbon.sh

This file was deleted.

0 comments on commit a647cff

Please sign in to comment.