Sha256: a03ef5560449a7fa8c37b0036a617de0f0bbf672f5c807e975ccd475e94694b6

Contents?: true

Size: 684 Bytes

Versions: 2

Compression:

Stored size: 684 Bytes

Contents

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

namespace :docker do
  task :build do
    sh 'docker', 'build', '-t', 'sider/goodcheck:dev', '.'
  end
end

namespace :docs do
  desc "Install dependencies for the documentation website"
  task :install_deps do
    on_docs_dir do
      sh "yarn install"
    end
  end

  desc "Build the documentation website"
  task :build => [:install_deps] do
    on_docs_dir do
      sh "yarn run build"
    end
  end

  def on_docs_dir(&block)
    Dir.chdir "docusaurus/website", &block
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
goodcheck-2.4.3 Rakefile
goodcheck-2.4.2 Rakefile