Sha256: 872ac7152e122075da6d22a11b3c52391c8c0b746b27ca008e88a3e6246359bb

Contents?: true

Size: 910 Bytes

Versions: 31

Compression:

Stored size: 910 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

namespace :wrapper do
  desc 'Wrap styles assets into this gem'
  task wrap: :clean do
    # readme
    cp_r '../README.md', 'README.md'

    #  gs-element-blockly
    cp_r '../bower_components/.tmp/gs-element-blockly.html', 'app/assets/htmls'

    # polymer
    cp_r '../bower_components/polymer/polymer.html', 'app/assets/htmls/vendor'
    cp_r '../bower_components/polymer/polymer-mini.html', 'app/assets/htmls/vendor'
    cp_r '../bower_components/polymer/polymer-micro.html', 'app/assets/htmls/vendor'

    # webcomponents
    cp_r '../bower_components/webcomponentsjs/webcomponents.min.js', 'app/assets/javascripts/vendor'
  end

  task :clean do
    rm_rf 'app'
    mkdir_p 'app/assets/htmls'
    mkdir_p 'app/assets/htmls/vendor'
    mkdir_p 'app/assets/javascripts/vendor'
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
mumuki-gobstones-blockly-0.39.0 Rakefile
mumuki-gobstones-blockly-0.38.1 Rakefile
mumuki-gobstones-blockly-0.38.0 Rakefile
mumuki-gobstones-blockly-0.37.1 Rakefile
mumuki-gobstones-blockly-0.36.0 Rakefile
gobstones-blockly-0.32.1 Rakefile
gobstones-blockly-0.32.0 Rakefile
gobstones-blockly-0.31.0 Rakefile
gobstones-blockly-0.30.1 Rakefile
gobstones-blockly-0.30.0 Rakefile
gobstones-blockly-0.29.1 Rakefile
gobstones-blockly-0.29.0 Rakefile
gobstones-blockly-0.28.1 Rakefile
gobstones-blockly-0.28.0 Rakefile
gobstones-blockly-0.25.4 Rakefile
gobstones-blockly-0.25.3 Rakefile
gobstones-blockly-0.25.2 Rakefile
gobstones-blockly-0.25.1 Rakefile
gobstones-blockly-0.25.0 Rakefile
gobstones-blockly-0.24.3 Rakefile