From f73ecc1e3e7218847ede62caba3dcc46b8421539 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Tue, 28 Nov 2023 12:44:05 -0300 Subject: [PATCH] tasks: clean_css -> clean:css --- tasks/nanoc.rake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/nanoc.rake b/tasks/nanoc.rake index c391ac0..75d113d 100644 --- a/tasks/nanoc.rake +++ b/tasks/nanoc.rake @@ -8,7 +8,7 @@ FileUtils.touch(lockp) lockf = LockFile.new(lockp) namespace :nanoc do - task :compile do + task compile: %w[clean:css] do warn "[build] Acquire lock..." lockf.lock ENV["SASS_PATH"] = "./src/css/" @@ -30,7 +30,7 @@ namespace :nanoc do lockf.release end - task :clean_css do + task "clean:css" do warn "[build] Acquire lock..." lockf.lock cssdir = File.join(build_dir, "css") @@ -40,7 +40,7 @@ namespace :nanoc do lockf.release end - task watch: ['build'] do + task watch: %w[build] do warn "[build] Acquire lock..." lockf.lock require "listen" @@ -58,7 +58,7 @@ namespace :nanoc do end desc "Build the website" -task build: ["nanoc:compile"] +task build: %w[nanoc:compile] desc "Trigger a build when src/ is modified" task "build:watch" => "nanoc:watch"