Sha256: 3a9acc11e74c8d583451f92e4fb1ff145a90aae5b5db391cb575f4b1f56c1306

Contents?: true

Size: 664 Bytes

Versions: 154

Compression:

Stored size: 664 Bytes

Contents

require 'rake'
require 'rake/tasklib'
require 'autoprefixer-rails'

module Rake
  # Define task to inspect Autoprefixer browsers, properties and values.
  # Call it from your `Rakefile`:
  #
  #   AutoprefixerTasks.new(['> 1%', 'opera 12'])
  class AutoprefixerTasks < Rake::TaskLib
    attr_reader :browsers

    def initialize(params = {})
      @params    = params
      @processor = AutoprefixerRails.processor(@params)
      define
    end

    def define
      namespace :autoprefixer do
        desc 'Show selected browsers and prefixed CSS properties and values'
        task :info do
          puts @processor.info
        end
      end
    end
  end
end

Version data entries

154 entries across 154 versions & 3 rubygems

Version Path
autoprefixer-rails-5.0.0.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-5.0.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-4.0.2.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-4.0.2.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-4.0.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-4.0.1.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-4.0.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-4.0.0.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-4.0.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-3.1.2.20141016 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-3.1.1.20141001 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-3.1.0.20140911 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-3.0.1.20140826 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-3.0.0.20140821 lib/rake/autoprefixer_tasks.rb