From c213e4d5d2563e7c83c69ebea8a38f78d26849f0 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 26 Jun 2020 12:49:47 -0500 Subject: [PATCH] Rename the react:component template to a .erb file --- gems/bess/lib/generators/react/component_generator.rb | 2 +- .../{component.js.jsx.tsx => component.js.jsx.tsx.erb} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename gems/bess/lib/generators/templates/{component.js.jsx.tsx => component.js.jsx.tsx.erb} (100%) diff --git a/gems/bess/lib/generators/react/component_generator.rb b/gems/bess/lib/generators/react/component_generator.rb index fdbf7e0e..4bb8e2e1 100644 --- a/gems/bess/lib/generators/react/component_generator.rb +++ b/gems/bess/lib/generators/react/component_generator.rb @@ -112,7 +112,7 @@ module React template_extension = if options[:coffee] 'js.jsx.coffee' elsif options[:ts] - 'js.jsx.tsx' + 'js.jsx.tsx.erb' elsif options[:es6] || webpacker? 'es6.jsx' else diff --git a/gems/bess/lib/generators/templates/component.js.jsx.tsx b/gems/bess/lib/generators/templates/component.js.jsx.tsx.erb similarity index 100% rename from gems/bess/lib/generators/templates/component.js.jsx.tsx rename to gems/bess/lib/generators/templates/component.js.jsx.tsx.erb