aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/nuldoc/Rakefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-01 02:07:09 +0900
committernsfisis <nsfisis@gmail.com>2026-02-01 02:09:26 +0900
commit1964f77d03eb647dcf46d63dde68d7ae7301604f (patch)
tree0e00d7caf3031fa86decaa0cbc226cc1e521b914 /services/nuldoc/Rakefile
parent9c39c8269e5c8a254081ce6cd43d3cd3da440280 (diff)
downloadnsfisis.dev-1964f77d03eb647dcf46d63dde68d7ae7301604f.tar.gz
nsfisis.dev-1964f77d03eb647dcf46d63dde68d7ae7301604f.tar.zst
nsfisis.dev-1964f77d03eb647dcf46d63dde68d7ae7301604f.zip
feat(nuldoc): add --profile flag to build command
Diffstat (limited to 'services/nuldoc/Rakefile')
-rw-r--r--services/nuldoc/Rakefile8
1 files changed, 7 insertions, 1 deletions
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