Sha256: 04d15a2fbb49698ad6cc313e4db02a5f47edaab7605adb8db8cb7edc8a955778

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

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

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

task default: :test

task :test_browser do
  FileUtils.copy_entry('vendor/assets/build/js/', 'test/test_app/build/js/')
  FileUtils.copy_entry('vendor/assets/build/css/', 'test/test_app/build/css/')
  FileUtils.copy_entry('vendor/assets/build/css/', 'test/test_app/build/medias/')
  `gem cleanup atome;yes | gem uninstall atome ;gem build atome.gemspec;gem install atome`
  `cd test/test_app;atome update;atome run guard`
end

task :test_server do
  FileUtils.copy_entry('vendor/assets/build/js/', 'test/test_app/build/js/')
  FileUtils.copy_entry('vendor/assets/build/css/', 'test/test_app/build/css/')
  FileUtils.copy_entry('vendor/assets/build/css/', 'test/test_app/build/medias/')
  `gem cleanup atome;yes | gem uninstall atome ;gem build atome.gemspec;gem install atome`
  `cd test/test_app;atome update;atome run server`
end

task default: :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.5.1.1 Rakefile