You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/vendor/bundle/ruby/4.0.0/gems/turbo-rails-2.0.23/Rakefile

29 lines
631 B

require "bundler/setup"
require "bundler/gem_tasks"
require "rake/testtask"
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
Rake::TestTask.new do |test|
test.libs << "test"
test.test_files = FileList["test/**/*_test.rb"]
end
task :test_prereq do
puts "Installing Ruby dependencies"
`bundle install`
puts "Installing JavaScript dependencies"
`yarn install`
puts "Building JavaScript"
`yarn build`
puts "Preparing test database"
`cd test/dummy; ./bin/rails db:test:prepare; cd ../..`
end
task default: [:test_prereq, :test]