DEV: Update javascript:update_constants rake task following template colocation (#20365)

As of ba3f62f576, handlebars templates are colocated with js files so the path to hbs templates referenced by this rake task is no longer valid. This commit fixes the path to hbs templates and updates a couple of files that are generated by the rake task.
This commit is contained in:
Osama Sayegh
2023-02-20 06:20:47 +03:00
committed by GitHub
parent 7ad92b7ab9
commit f91631b625
7 changed files with 16 additions and 8 deletions

View File

@ -196,7 +196,7 @@ task "javascript:update_constants" => :environment do
emoji_sections = groups_json.map { |group| html_for_section(group) }
components_dir = "discourse/app/templates/components"
components_dir = "discourse/app/components"
write_hbs_template("#{components_dir}/emoji-group-buttons.hbs", task_name, emoji_buttons.join)
write_hbs_template("#{components_dir}/emoji-group-sections.hbs", task_name, emoji_sections.join)
end