lib/tasks/bower.rake in bower-rails-0.1.3 vs lib/tasks/bower.rake in bower-rails-0.2.1
- old
+ new
@@ -28,11 +28,14 @@
["lib", "vendor"].each do |dir|
data = json[dir]
+ #check folder existence and create?
+ dir = "#{Rails.root}/#{dir}/assets/javascripts"
+ FileUtils.mkdir_p dir unless File.directory? dir
#go in to dir to act
- Dir.chdir("#{Rails.root}/#{dir}/assets/javascripts") do
+ Dir.chdir(dir) do
#remove old components
FileUtils.rm_rf("components") if remove_components
#create component json