Apply 'exe' option to the correct filter
This commit is contained in:
parent
87486f34d1
commit
982a64225f
4 changed files with 18 additions and 20 deletions
|
@ -9,25 +9,24 @@ locales.each do |locale|
|
|||
compile "/html/main/surah-index.html.erb", rep: "/#{locale}/surah/index" do
|
||||
context = Ryo.from(filename: "surah-index.html.erb", dir: tdata[locale].dir, locale:, locales:)
|
||||
filter(:erb, {locals: {locale:, locales:, dir: context.dir, context:}})
|
||||
filter(:tidy)
|
||||
filter(:tidy, exe: tidy)
|
||||
write "/#{locale}/index.html"
|
||||
end
|
||||
end
|
||||
|
||||
compile "/js/main/surah-index.tsx" do
|
||||
filter :webpack, exe: tidy,
|
||||
depend_on: [
|
||||
"/js/components",
|
||||
"/js/lib/",
|
||||
"/js/hooks"
|
||||
]
|
||||
filter :webpack, depend_on: [
|
||||
"/js/components",
|
||||
"/js/lib/",
|
||||
"/js/hooks"
|
||||
]
|
||||
write "/js/main/surah-index.js"
|
||||
filter :gzip
|
||||
write "/js/main/surah-index.js.gz"
|
||||
end
|
||||
|
||||
compile "/js/loaders/SurahIndexLoader.ts" do
|
||||
filter :webpack, exe: tidy
|
||||
filter :webpack
|
||||
write "/js/loaders/surah-index-loader.js"
|
||||
filter :gzip
|
||||
write "/js/loaders/surah-index-loader.js.gz"
|
||||
|
|
|
@ -9,13 +9,13 @@ locales.each do |locale|
|
|||
compile "/html/main/random.html.erb", rep: "random/#{locale}" do
|
||||
context = Ryo.from({filename: "random.html.erb", dir: tdata[locale].dir, locale:, locales:})
|
||||
filter(:erb, locals: {locale:, locales:, dir: context.dir, context:})
|
||||
filter(:tidy)
|
||||
filter(:tidy, exe: tidy)
|
||||
write("/#{locale}/random/index.html")
|
||||
end
|
||||
end
|
||||
|
||||
compile "/js/main/random.ts" do
|
||||
filter(:webpack, exe: tidy, depend_on: ["/js/lib/"])
|
||||
filter(:webpack, depend_on: ["/js/lib/"])
|
||||
write("/js/main/random.js")
|
||||
filter(:gzip)
|
||||
write("/js/main/random.js.gz")
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
compile "/html/main/redirect.html.erb" do
|
||||
filter(:erb, locals: {locales:})
|
||||
filter(:tidy)
|
||||
filter(:tidy, exe: tidy)
|
||||
write("/index.html")
|
||||
end
|
||||
|
||||
compile "/js/main/redirect.ts" do
|
||||
filter(:webpack, exe: tidy, depend_on: ["/js/lib/"])
|
||||
filter(:webpack, depend_on: ["/js/lib/"])
|
||||
write("/js/main/redirect.js")
|
||||
filter(:gzip)
|
||||
write("/js/main/redirect.js.gz")
|
||||
|
|
|
@ -28,7 +28,7 @@ Ryo.each(name_by_id) do |id, slug|
|
|||
surah: context.surah, dir: context.dir, context:
|
||||
}
|
||||
filter(:erb, locals:)
|
||||
filter(:tidy)
|
||||
filter(:tidy, exe: tidy)
|
||||
write "/#{locale}/#{pathname}/index.html"
|
||||
end
|
||||
locales.each do |locale|
|
||||
|
@ -42,19 +42,18 @@ Ryo.each(name_by_id) do |id, slug|
|
|||
end
|
||||
|
||||
compile "/js/main/surah-stream.tsx" do
|
||||
filter :webpack, exe: tidy,
|
||||
depend_on: [
|
||||
"/js/components",
|
||||
"/js/lib/",
|
||||
"/js/hooks"
|
||||
]
|
||||
filter :webpack, depend_on: [
|
||||
"/js/components",
|
||||
"/js/lib/",
|
||||
"/js/hooks"
|
||||
]
|
||||
write "/js/main/surah-stream.js"
|
||||
filter :gzip
|
||||
write "/js/main/surah-stream.js.gz"
|
||||
end
|
||||
|
||||
compile "/js/loaders/SurahStreamLoader.ts" do
|
||||
filter :webpack, exe: tidy
|
||||
filter :webpack
|
||||
write "/js/loaders/surah-stream-loader.js"
|
||||
filter :gzip
|
||||
write "/js/loaders/surah-stream-loader.js.gz"
|
||||
|
|
Loading…
Reference in a new issue