Sha256: a61ac05060bbeae5a9a58c499f32737df183d3d6bc89ea8f166268e31fcfcc9e
Contents?: true
Size: 784 Bytes
Versions: 15
Compression:
Stored size: 784 Bytes
Contents
module Susanoo class Tasks def self.load_tasks path = File.expand_path("../", __FILE__) ::Dir["#{path}/tasks/*.rake"].each do |r| load r end end end end require 'rake' require 'rake/sprocketstask' require 'uglifier' require 'yui/compressor' assets = Sprockets::Environment.new assets.append_path File.join(Dir.pwd, 'src/assets/javascripts') assets.append_path File.join(Dir.pwd, 'src/assets/stylesheets') Rake::SprocketsTask.new do |t| t.environment = assets t.output = File.join(Dir.pwd, 'www/assets/') t.assets = %w(application.css application.js) t.environment.css_compressor = YUI::CssCompressor.new t.environment.js_compressor = Uglifier.new(:mangle => true) end.define
Version data entries
15 entries across 15 versions & 1 rubygems