dolphins7.skeleton/twenty-frontend/nanoc/rules/issues.rules

49 lines
1 KiB
Text
Raw Normal View History

#!/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
2023-12-21 06:14:31 +01:00
filter(:webpack, depend_on: %w[/js/components/ /js/hooks/ /js/types/])
write("/js/entry-point/new-issue.js")
end
##
2023-12-21 07:20:22 +01:00
# 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
2023-12-21 06:14:31 +01:00
filter(:webpack, depend_on: %w[/js/components /js/hooks/ /js/types/])
write("/js/entry-point/issues.js")
end
##
2023-12-21 06:17:20 +01:00
# GET /issues/read#<issue-id>
2023-12-21 06:14:31 +01:00
compile("/html/issues/read/index.html.erb") do
layout "/default.*"
filter(:erb)
2023-12-21 06:14:31 +01:00
write("/issues/read/index.html")
end
##
2023-12-21 06:17:20 +01:00
# GET /js/entry-point/read-issue.js
2023-12-21 06:14:31 +01:00
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