Skip to content

Commit fb3efe5

Browse files
authored
Prevent duplication in gitignore (#29)
1 parent 700c858 commit fb3efe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/install/install.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
end
88

99
if Rails.root.join(".gitignore").exist?
10-
append_to_file(".gitignore", %(\n/app/assets/builds/*\n!/app/assets/builds/.keep\n/node_modules\n))
10+
append_to_file(".gitignore", %(\n/app/assets/builds/*\n!/app/assets/builds/.keep\n))
11+
append_to_file(".gitignore", %(\n/node_modules\n))
1112
end
1213

1314
if (app_layout_path = Rails.root.join("app/views/layouts/application.html.erb")).exist?

0 commit comments

Comments
 (0)