Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6c7f1552af
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.406 kb
namespace :assets do
task :precompile do
require 'fileutils'
require 'sprockets'
require 'uglifier'
sprockets = Sprockets::Environment.new
sprockets.js_compressor = Uglifier.new
sprockets.append_path('app/assets/javascripts')
FileUtils.mkdir_p('public/v1')
File.open('public/v1/abba.js', 'w+') do |file|
file.write sprockets['client/index'].to_s
end
end
end
Jump to Line
Something went wrong with that request. Please try again.