2023-12-20 20:26:43 +01:00
|
|
|
#!/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/])
|
2023-12-20 20:26:43 +01:00
|
|
|
write("/js/entry-point/new-issue.js")
|
|
|
|
end
|
2023-12-21 04:41:56 +01:00
|
|
|
|
|
|
|
##
|
2023-12-21 07:20:22 +01:00
|
|
|
# GET /
|
2023-12-21 04:41:56 +01:00
|
|
|
# GET /issues/
|
|
|
|
compile("/html/issues/index.html.erb") do
|
|
|
|
layout "/default.*"
|
|
|
|
filter(:erb)
|
|
|
|
write("/issues/index.html")
|
2023-12-21 07:19:28 +01:00
|
|
|
write("/index.html")
|
2023-12-21 04:41:56 +01:00
|
|
|
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/])
|
2023-12-21 04:41:56 +01:00
|
|
|
write("/js/entry-point/issues.js")
|
|
|
|
end
|
2023-12-21 06:09:22 +01:00
|
|
|
|
|
|
|
##
|
2023-12-22 20:53:38 +01:00
|
|
|
# GET /issues/id#id=X
|
|
|
|
compile("/html/issues/edit/index.html.erb") do
|
2023-12-21 06:09:22 +01:00
|
|
|
layout "/default.*"
|
|
|
|
filter(:erb)
|
2023-12-22 20:53:38 +01:00
|
|
|
write("/issues/edit/index.html")
|
2023-12-21 06:09:22 +01:00
|
|
|
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")
|
2023-12-21 06:09:22 +01:00
|
|
|
end
|