Rakefile in kurento_rails-0.1.1 vs Rakefile in kurento_rails-0.1.4
- old
+ new
@@ -10,13 +10,14 @@
t.test_files = FileList['test/**/*_test.rb']
end
task :build do |t|
# compile the coffeescript source into vanilla js
+ puts "Compiling Coffeescript"
File.open('lib/generators/kurento_rails/templates/javascript/kurento-rails-js/kurento-rails.js', 'w') do |f|
f.write CoffeeScript.compile(File.open("src/kurento-rails.coffee"))
end
-
+ puts "Copying assets from src to lib folder"
FileUtils.cp 'src/kurento_controller.rb', 'lib/generators/kurento_rails/templates/controllers/kurento_controller.rb'
FileUtils.cp 'src/kurento_websockets_controller.rb', 'lib/generators/kurento_rails/templates/controllers/kurento_websockets_controller.rb'
FileUtils.cp 'src/events.rb', 'lib/generators/kurento_rails/templates/config/events.rb'
FileUtils.cp 'src/kurento_rails_video_stream.rb', 'lib/generators/kurento_rails/templates/models/kurento_rails_video_stream.rb'
end