Update nanoc.rake

This commit is contained in:
0x1eef 2024-06-19 18:47:17 -03:00
parent 31741a1bbd
commit 5e8b89fe58

View file

@ -5,7 +5,7 @@ require "nanoc"
cwd = File.realpath File.join(__dir__, "..", "..")
namespace :nanoc do
desc "Clean the build/ directory"
desc "Clean directories"
task :clean do
Dir.chdir(cwd) do
sh "rm -rf node_modules/.cache/"
@ -14,12 +14,12 @@ namespace :nanoc do
end
end
desc "Produce the build/ directory"
desc "Produce the build directory"
task :build, %i[buildenv] => %i[setenv] do |t, args|
Nanoc::CLI.run(["compile"])
end
desc "Produce the build/ directory on-demand"
desc "Produce the build directory on-demand"
task :watch, %i[buildenv] => %i[setenv nanoc:build] do |t, args|
require "listen"
path = File.join(Dir.getwd, "src")