tasks: clean_css -> clean:css
This commit is contained in:
parent
38f8419dad
commit
f73ecc1e3e
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue