From 9629354abbb5e96142834497f80d267e96536ced Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Sun, 21 Oct 2018 22:40:01 +0300 Subject: Remove yarn's files from `.gitignore` template for new rails app Webpacker already does it, see https://github.com/rails/webpacker/blob/895d2cfc15eda2edae9e667c642a02523d958f53/lib/install/template.rb#L25-L33 I also opened PR https://github.com/rails/webpacker/pull/1765 in order to make it add `/yarn-error.log` file too. --- railties/lib/rails/generators/rails/app/templates/gitignore.tt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'railties/lib/rails/generators') diff --git a/railties/lib/rails/generators/rails/app/templates/gitignore.tt b/railties/lib/rails/generators/rails/app/templates/gitignore.tt index 4e114fb1d9..38c3ab1319 100644 --- a/railties/lib/rails/generators/rails/app/templates/gitignore.tt +++ b/railties/lib/rails/generators/rails/app/templates/gitignore.tt @@ -27,14 +27,9 @@ <% if keeps? -%> !/storage/.keep <% end -%> -<% end -%> - -<% unless options.skip_yarn? -%> -/node_modules -/yarn-error.log - <% end -%> <% unless options.api? -%> + /public/assets <% end -%> .byebug_history -- cgit v1.2.3