lib/tasks/framework.rake in radiant-0.6.5 vs lib/tasks/framework.rake in radiant-0.6.5.1
- old
+ new
@@ -93,9 +93,10 @@
install "#{File.dirname(__FILE__)}/../generators/instance/templates/instance_generate", "#{local_base}/generate", :mode => 0755
end
desc "Update your javascripts from your current radiant install"
task :javascripts do
+ FileUtils.mkdir_p("#{RAILS_ROOT}/public/javascripts/admin/")
copy_javascripts = proc do |project_dir, scripts|
scripts.reject!{|s| File.basename(s) == 'application.js'} if File.exists?(project_dir + 'application.js')
FileUtils.cp(scripts, project_dir)
end
copy_javascripts[RAILS_ROOT + '/public/javascripts/', Dir["#{File.dirname(__FILE__)}/../../public/javascripts/*.js"]]
\ No newline at end of file