Sha256: 5137f8a3ef0509ad1787dc7b699a98159f435d2a186f320e8a15542052034193

Contents?: true

Size: 909 Bytes

Versions: 19

Compression:

Stored size: 909 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

19 entries across 19 versions & 1 rubygems

Version Path
gobstones-blockly-0.19.0 Rakefile
gobstones-blockly-0.18.1 Rakefile
gobstones-blockly-0.18.0 Rakefile
gobstones-blockly-0.17.0 Rakefile
gobstones-blockly-0.16.0 Rakefile
gobstones-blockly-0.15.0 Rakefile
gobstones-blockly-0.14.0 Rakefile
gobstones-blockly-0.13.1 Rakefile
gobstones-blockly-0.13.0 Rakefile
gobstones-blockly-0.12.0 Rakefile
gobstones-blockly-0.11.2 Rakefile
gobstones-blockly-0.11.1 Rakefile
gobstones-blockly-0.11.0 Rakefile
gobstones-blockly-0.10.3 Rakefile
gobstones-blockly-0.10.2 Rakefile
gobstones-blockly-0.10.1 Rakefile
gobstones-blockly-0.10.0 Rakefile
gobstones-blockly-0.8.5 Rakefile
gobstones-blockly-0.6.0 Rakefile