Sha256: e4e7edf5ecd88b39fcf654500abe8457aa60d4d08d2f76bc16b570529482b46b

Contents?: true

Size: 1.03 KB

Versions: 12

Compression:

Stored size: 1.03 KB

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

require 'rdoc/task'

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'FrontEndBuilds'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)
  task :default => :spec
rescue LoadError
  # no rspec available
end

namespace :admin do
  task :build do
    Dir.chdir('admin') do
      sh 'ember build  --environment=production'
    end

    # Copy the dist to public
    FileUtils.rm_r 'public/front_end_builds'
    FileUtils.mv 'admin/dist', 'public/front_end_builds'

    # Move the index out of public
    FileUtils.mv 'public/front_end_builds/index.html', 'app/views/front_end_builds/admin/index.html.erb'
  end
end

APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'


Bundler::GemHelper.install_tasks

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
front_end_builds-0.2.1 Rakefile
front_end_builds-0.2.0 Rakefile
front_end_builds-0.1.3 Rakefile
front_end_builds-0.1.2 Rakefile
front_end_builds-0.1.1 Rakefile
front_end_builds-0.1.0 Rakefile
front_end_builds-0.0.26 Rakefile
front_end_builds-0.0.25 Rakefile
front_end_builds-0.0.24 Rakefile
front_end_builds-0.0.23 Rakefile
front_end_builds-0.0.21 Rakefile
front_end_builds-0.0.20 Rakefile