Sha256: 5d4b66f375694c967fe023bd93eb952e0755cfe92f130c4d4c7679782e30addc

Contents?: true

Size: 675 Bytes

Versions: 6

Compression:

Stored size: 675 Bytes

Contents

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

Rake::TestTask.new do |t|
    t.libs << "test"
    t.test_files = FileList['test/*_test.rb']
    t.verbose = true
  end

task :default => :test

task :build_web do
  Dir.chdir(File.join(File.dirname(__FILE__), "web"))
  sh("rm -Rf dist")
  sh("npm run build")
end

task :check_master do
  current_branch = `git rev-parse --abbrev-ref HEAD`.chomp
  if "master" != current_branch
    $stderr.puts "\n===== Warning: Not on master. running on branch #{current_branch} =====\n\n"
  end
end

Rake::Task[:release].prerequisites.unshift(:check_master)
Rake::Task[:release].prerequisites.unshift(:build_web)

task :default => :test

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shiba-0.9.4 Rakefile
shiba-0.9.3 Rakefile
shiba-0.9.2 Rakefile
shiba-0.9.1 Rakefile
shiba-0.9.0 Rakefile
shiba-0.8.1 Rakefile