forked from clacky-ai/openclacky
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (26 loc) · 815 Bytes
/
Copy pathRakefile
File metadata and controls
34 lines (26 loc) · 815 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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
namespace :build do
desc "Build both openclacky and clacky gems"
task :all do
puts "Building openclacky gem..."
sh "gem build openclacky.gemspec"
puts "Building clacky gem..."
sh "cd clacky-legacy && gem build clacky.gemspec"
sh "cd clacky-legacy && gem build clarky.gemspec"
puts "Moving gems to pkg directory..."
sh "mkdir -p pkg"
sh "mv openclacky-*.gem pkg/"
sh "mv clacky-legacy/*.gem pkg/"
puts "✅ Build complete! Gems are in pkg/ directory:"
sh "ls -lh pkg/*.gem"
end
desc "Clean built gems from pkg directory"
task :clean do
sh "rm -rf pkg/*.gem"
puts "✅ Cleaned pkg directory"
end
end
task default: %i[spec]