Sha256: 932403d0a687f582bc23ee95d760b0b96889a9b04758e87298b91e7979c4d29e

Contents?: true

Size: 714 Bytes

Versions: 29

Compression:

Stored size: 714 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')

namespace :bootstrap do
  desc 'Compile bootstrap assets'
  task :compile do
    puts "Implement"
  end

  desc 'Compile css'
  task :css do
    require 'less'
    src = File.join(File.dirname(__FILE__), 'lib', 'padrino-admin', 'bootstrap-less', 'padrino-admin.less')
    out = File.join(File.dirname(__FILE__), 'lib', 'padrino-admin', 'generators', 'templates', 'assets', 'stylesheets', 'bootstrap.css')
    css = Less::Parser.new(:paths => [File.dirname(src)]).parse(File.read(src)).to_css(:compress => true)
    File.open(out, 'w') { |file| file.write css }
    puts "Generated #{out}"
  end

  desc 'Compile js'
  task :js do
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
padrino-admin-0.16.0.pre3 Rakefile
padrino-admin-0.16.0.pre2 Rakefile
padrino-admin-0.15.3 Rakefile
padrino-admin-0.15.2 Rakefile
padrino-admin-0.15.1 Rakefile
padrino-admin-0.15.0 Rakefile
padrino-admin-0.14.4 Rakefile
padrino-admin-0.14.3 Rakefile
padrino-admin-0.12.9 Rakefile
padrino-admin-0.14.2 Rakefile
padrino-admin-0.13.3.4 Rakefile
padrino-admin-0.14.1.1 Rakefile
padrino-admin-0.14.1 Rakefile
padrino-admin-0.14.0.2 Rakefile
padrino-admin-0.14.0.1 Rakefile
padrino-admin-0.14.0 Rakefile
padrino-admin-0.14.0.rc2 Rakefile
padrino-admin-0.14.0.rc1 Rakefile
padrino-admin-0.13.3.3 Rakefile
padrino-admin-0.13.3.2 Rakefile