Skip to content

Commit

Permalink
Remove "Hello" component
Browse files Browse the repository at this point in the history
I’ve used the generator a few times and I don’t like that it creates this.
  • Loading branch information
joeldrapper committed Sep 13, 2024
1 parent 2fa4905 commit d524389
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
6 changes: 1 addition & 5 deletions lib/generators/phlex/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def configure_tailwind
if tailwind_configuration_path
insert_into_file tailwind_configuration_path, after: "content: [" do
"\n './app/views/**/*.rb', // Phlex views" \
"\n './app/components/**/*.rb', // Phlex components" \
"\n './app/components/**/*.rb', // Phlex components" \
end
end
end
Expand All @@ -23,10 +23,6 @@ def create_application_view
template "base_view.rb.erb", Rails.root.join("app/views/base.rb")
end

def create_hello_component
template "hello_component.rb.erb", Rails.root.join("app/components/hello.rb")
end

def create_initializer
template "phlex.rb.erb", Rails.root.join("config/initializers/phlex.rb")
end
Expand Down
11 changes: 0 additions & 11 deletions lib/generators/phlex/install/templates/hello_component.rb.erb

This file was deleted.

0 comments on commit d524389

Please sign in to comment.