From 1964f77d03eb647dcf46d63dde68d7ae7301604f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 1 Feb 2026 02:07:09 +0900 Subject: feat(nuldoc): add --profile flag to build command --- services/nuldoc/Rakefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'services/nuldoc/Rakefile') diff --git a/services/nuldoc/Rakefile b/services/nuldoc/Rakefile index 811398f4..4dfe4317 100644 --- a/services/nuldoc/Rakefile +++ b/services/nuldoc/Rakefile @@ -6,7 +6,8 @@ RuboCop::RakeTask.new desc 'Build the site' task :build do config = Nuldoc::ConfigLoader.load_config(Nuldoc::ConfigLoader.default_config_path) - Nuldoc::Commands::Build.run(config) + profile = ENV.key?('PROFILE') + Nuldoc::Commands::Build.run(config, profile: profile) end desc 'Start development server' @@ -20,3 +21,8 @@ task :new, [:type] do |_t, args| config = Nuldoc::ConfigLoader.load_config(Nuldoc::ConfigLoader.default_config_path) Nuldoc::Commands::New.run(config, type: args[:type], date: nil) end + +desc 'Benchmark the build' +task :bench do + sh 'hyperfine', '--warmup', '1', 'rake build' +end -- cgit v1.3-1-g0d28