Sha256: d8658e9b699a97d0da6fd7f7e9f8232c30b0a992b0aa16970a650c55f31c7c9c

Contents?: true

Size: 851 Bytes

Versions: 3

Compression:

Stored size: 851 Bytes

Contents

# frozen_string_literal: true

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

Dir.glob("./lib/tasks/**/*_task.rake").each { |task| load task }

require "bundler/gem_tasks"
require "rspec/core/rake_task"

require "archangel/testing_support/rake/dummy_rake"

RSpec::Core::RakeTask.new

task default: :spec

desc "Remove any generated files and directories"
task :clean do
  %w[
    brakeman.html Gemfile.lock spec/examples.txt yarn.lock
  ].each { |file| rm_f file }

  %w[
    .yardoc coverage doc pkg archangel_* node_modules pkg spec/dummy
  ].each { |directory| rm_rf directory }
end

desc "Generates a dummy app for Archangel"
task :dummy_app do
  ENV["LIB_NAME"] = "archangel"

  Rake::Task["dummy:generate"].invoke
end

desc "Run RSpec tests"
task test: :spec

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
archangel-0.4.0 Rakefile
archangel-0.3.0 Rakefile
archangel-0.0.8 Rakefile