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

Version Path
susanoo-0.14.0 lib/susanoo/tasks.rb
susanoo-0.13.2 lib/susanoo/tasks.rb
susanoo-0.13.1 lib/susanoo/tasks.rb
susanoo-0.13.0 lib/susanoo/tasks.rb
susanoo-0.12.3 lib/susanoo/tasks.rb
susanoo-0.12.2 lib/susanoo/tasks.rb
susanoo-0.12.1 lib/susanoo/tasks.rb
susanoo-0.12.0 lib/susanoo/tasks.rb
susanoo-0.11.1 lib/susanoo/tasks.rb
susanoo-0.10.0 lib/susanoo/tasks.rb
susanoo-0.8.0 lib/susanoo/tasks.rb
susanoo-0.7.4 lib/susanoo/tasks.rb
susanoo-0.7.2 lib/susanoo/tasks.rb
susanoo-0.7.1 lib/susanoo/tasks.rb
susanoo-0.7.0 lib/susanoo/tasks.rb