lib/opal/rake_task.rb in opal-0.3.21 vs lib/opal/rake_task.rb in opal-0.3.22

- old
+ new

@@ -12,11 +12,11 @@ @project_dir = Dir.getwd @name = File.basename(@project_dir) @build_dir = 'build' @specs_dir = 'spec' - @files = Dir['lib/**/*.{rb,js}'] + @files = Dir['lib/**/*.{rb,js,erb}'] @dependencies = [] yield self if block_given? define_tasks @@ -52,10 +52,10 @@ desc "Build dependencies" task 'opal:dependencies' do out = File.join @build_dir, 'opal.js' puts " * #{out}" - write_code Opal.runtime, File.join(@build_dir, 'opal.js') + write_code Opal.runtime, out @dependencies.each { |dep| build_gem dep } end desc "Build opal files, dependencies and specs" \ No newline at end of file