Add the local compass code to the load path automatically when compiling via rake.

This commit is contained in:
Chris Eppstein 2010-03-27 21:16:46 -07:00
parent 9988fa9a63
commit 4df1e98914

View File

@ -16,6 +16,7 @@ task :watch do
require 'fssm' require 'fssm'
require 'nanoc3' require 'nanoc3'
require 'nanoc3/cli' require 'nanoc3/cli'
$:<< File.expand_path(File.dirname(__FILE__)+"/../lib")
Dir['lib/commands/*.rb'].map{|d| d[4..-1]}.sort.each { |f| require f } Dir['lib/commands/*.rb'].map{|d| d[4..-1]}.sort.each { |f| require f }
Dir['lib/data_sources/*.rb'].map{|d| d[4..-1]}.sort.each { |f| require f } Dir['lib/data_sources/*.rb'].map{|d| d[4..-1]}.sort.each { |f| require f }
Nanoc3::NotificationCenter.on(:compilation_started) do |rep| Nanoc3::NotificationCenter.on(:compilation_started) do |rep|