dolphins7.skeleton/twenty-frontend/tasks/nanoc.rake
0x1eef 8c09b91cc0 frontend: add vendor/tail
And remove unused vendored css.
2024-01-14 01:51:44 -03:00

19 lines
447 B
Ruby

namespace :nanoc do
desc "Produce the build/ directory"
task :build do
# FIXME: discover why rm -rf build/css/ is needed.
sh "rm -rf build/css/"
sh "nanoc co"
end
desc "Produce the build/ directory on-demand"
task watch: ['nanoc:build'] do
require "listen"
path = File.join(Dir.getwd, "src")
Listen.to(path) { sh "rake nanoc:build" }.start
sleep
rescue Interrupt
warn "SIGINT: exit"
exit
end
end