Sha256: 8e3420afdd18e6c377667ba112d58ac679a0bd8f3becfc923edc3eebe6359590
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
require "bundler/gem_tasks" require 'fileutils' require 'fancytree/rails/version' namespace :fancytree do desc "Update FancyTree library from current version" task :update => :build do cd "tmp/fancytree" do cd "dist" do js = FileList['*'].exclude(/\Askip*/) FileUtils.cp_r(js, '../../../vendor/assets/javascripts/fancytree') css_files = Dir.glob("skin*/*.css") css_files.each do |file| mkdir_p "../../../vendor/assets/stylesheets/fancytree/#{File.dirname(file)}" FileUtils.cp file, "../../../vendor/assets/stylesheets/fancytree/#{file}" end images_files = Dir.glob("skin*/*.gif") images_files.each do |file| mkdir_p "../../../vendor/assets/images/fancytree/#{File.dirname(file)}" FileUtils.cp file, "../../../vendor/assets/images/fancytree/#{file}" end end end end task :build => "tmp/fancytree" do cd "tmp/fancytree" do #sh "npm install -g grunt-cli" #Non needed any more, currnetyl ./dist contains compiled version for the release # sh "npm install" # sh "grunt build --force" #foce because of tabfix end end file "tmp/fancytree" do mkdir_p "tmp" cd "tmp" do sh "git clone --branch '#{Fancytree::Rails::FANCYTREE_VERSION}' https://github.com/mar10/fancytree.git" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fancytree-rails-2.0.0.pre.11.pre.1 | Rakefile |