2023-03-02 05:30:46 +01:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
##
|
|
|
|
# Contains rules that are related to TheSurahIndex in one
|
|
|
|
# way or another.
|
|
|
|
|
2023-03-08 04:20:53 +01:00
|
|
|
compile "/html/surah/index/redirect.html.erb" do
|
|
|
|
filter(:erb)
|
|
|
|
write("/index.html")
|
|
|
|
end
|
|
|
|
|
|
|
|
compile "/js/surah/index/redirect.ts" do
|
|
|
|
filter(:webpack)
|
|
|
|
write("/js/surah/index/redirect.js")
|
|
|
|
end
|
|
|
|
|
2023-03-02 05:30:46 +01:00
|
|
|
compile "/surahs.json" do
|
|
|
|
write "/surahs.json"
|
|
|
|
end
|
|
|
|
|
|
|
|
locales.each do |locale|
|
|
|
|
compile "/html/TheSurahIndex.html.erb", rep: "/#{locale}/TheSurahIndex" do
|
|
|
|
filter :erb, locals: {locale:}
|
|
|
|
write "/#{locale}/index.html"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
compile "/js/pages/TheSurahIndex.tsx" do
|
|
|
|
filter :webpack, depend_on: ["/js/components", "/js/lib/[!WebPackage]/", "/js/hooks"]
|
|
|
|
write "/js/pages/TheSurahIndex.js"
|
|
|
|
filter :gzip_text
|
|
|
|
write "/js/pages/TheSurahIndex.js.gz"
|
|
|
|
end
|
|
|
|
|
|
|
|
compile "/js/pages/TheSurahIndex/package.ts" do
|
|
|
|
filter :webpack, depend_on: "/js/lib/WebPackage"
|
|
|
|
write "/js/pages/TheSurahIndex/package.js"
|
|
|
|
end
|
|
|
|
|
|
|
|
compile "/css/pages/TheSurahIndex.scss" do
|
|
|
|
filter :sass, syntax: :scss, style: :compact
|
|
|
|
filter :rainpress
|
|
|
|
write("/css/pages/TheSurahIndex.css")
|
|
|
|
end
|