Sha256: 2ea8215e334fe270d04e58de2ef3053aadb39f47510447432839e4ed9efb4185

Contents?: true

Size: 653 Bytes

Versions: 2

Compression:

Stored size: 653 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"
require "fileutils"

require_relative "lib/ember/version"

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

task :default do
  ember_version = Ember::VERSION[/\d\.\d\.\d/]

  puts "Fetching Ember v#{ember_version}"

  FileUtils.rm_rf("ember")
  FileUtils.rm_rf("dist")

  `git clone -b 'v#{ember_version}' --single-branch --depth 1 https://github.com/emberjs/ember.js.git ember`
  `cd ember && yarn && yarn run build && cd -`

  FileUtils.mkdir_p("dist")
  FileUtils.cp_r("ember/dist/.", "dist/")
  FileUtils.rm_rf("ember")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 Rakefile
discourse-ember-source-3.5.1.1 Rakefile