Sha256: 372e6130d9928aef5ef863541dcd00c2b5c2757b2cca1535aea574ef8b72d1a6

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

namespace :icons do
  task :compile do
    puts "Start of icons optimizing"

    files = Dir.glob("#{Rails.root}/app/assets/icons/*.svg")

    files.each do |file|
      SvgOptimizer.optimize_file(file)
    end

    puts "Svg optimizing done."
    puts "----------------------"
    puts 'Compiling icons...'
    puts `fontcustom compile`
    puts "----------------------"
    puts "Icons compilation done."

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blueberry_rails-0.4.1 templates/tasks/icons.rake
blueberry_rails-0.4.0 templates/tasks/icons.rake
blueberry_rails-0.3.10 templates/tasks/icons.rake
blueberry_rails-0.3.9 templates/tasks/icons.rake