-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (28 loc) · 800 Bytes
/
Rakefile
File metadata and controls
35 lines (28 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true
# typed: ignore
require "bundler/setup"
require "bundler/gem_tasks"
if ENV['DISABLE_SORBET']
require_relative "lib/mayu/disable_sorbet"
Mayu::DisableSorbet.disable_sorbet!
end
unless ENV['BUNDLE_WITHOUT'].to_s.split(":").include?("test")
require "minitest/test_task"
require "minitest/reporters"
Minitest::TestTask.create(:test) do |t|
t.libs << "lib"
t.warning = false
t.test_globs = ["lib/**/*.test.rb"]
end
task default: :test
end
task :build do
system("npm", "-w", "lib/mayu/client", "run", "build:production")
system("gem", "build")
end
namespace :profile do
desc "Profile vnode update path with Vernier"
task :vnodes_update do
sh "bundle", "exec", "ruby", "lib/mayu/runtime/vnodes/__test__/update_profile.rb"
end
end