DEV: Configure prettier for hbs templates

This commit is contained in:
David Taylor
2022-12-28 12:25:42 +00:00
parent 61b2d2eade
commit 104a16610a
8 changed files with 13 additions and 2 deletions
+1
View File
@@ -58,6 +58,7 @@ def write_hbs_template(path, task_name, template)
basename = File.basename(path)
output_path = "#{Rails.root}/app/assets/javascripts/#{path}"
File.write(output_path, "#{header}\n#{template}")
%x{yarn run prettier --write #{output_path}}
puts "#{basename} created"
end