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-6.3.3 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.3.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.3.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.3.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.2.3 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.2.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.2.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.2.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.1.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.1.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.1.0.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.1.0 lib/rake/autoprefixer_tasks.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/autoprefixer-rails-6.0.3/lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.0.3 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.0.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.0.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-6.0.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-5.2.1.3 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-5.2.1.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-5.2.1.1 lib/rake/autoprefixer_tasks.rb