dolphins7.skeleton/twenty-frontend/nanoc/rules/issues.rules
2023-12-21 03:20:22 -03:00

48 lines
1 KiB
Ruby

#!/usr/bin/env ruby
##
# GET /issues/new/
compile '/html/issues/new/index.html.erb' do
layout "/default.*"
filter(:erb)
write("/issues/new/index.html")
end
##
# GET /js/entry-point/new-issue.js
compile("/js/entry-point/new-issue.tsx") do
filter(:webpack, depend_on: %w[/js/components/ /js/hooks/ /js/types/])
write("/js/entry-point/new-issue.js")
end
##
# GET /
# GET /issues/
compile("/html/issues/index.html.erb") do
layout "/default.*"
filter(:erb)
write("/issues/index.html")
write("/index.html")
end
##
# GET /js/entry-point/issues.js
compile("/js/entry-point/issues.tsx") do
filter(:webpack, depend_on: %w[/js/components /js/hooks/ /js/types/])
write("/js/entry-point/issues.js")
end
##
# GET /issues/read#<issue-id>
compile("/html/issues/read/index.html.erb") do
layout "/default.*"
filter(:erb)
write("/issues/read/index.html")
end
##
# GET /js/entry-point/read-issue.js
compile("/js/entry-point/read-issue.tsx") do
filter(:webpack, depend_on: %w[/js/components /js/hooks/ /js/types/])
write("/js/entry-point/read-issue.js")
end