Skip to content

Commit

Permalink
Handle case of existing gitignore no newline end
Browse files Browse the repository at this point in the history
keep blank line at top in case existing .gitignore does not end in a
newline
  • Loading branch information
justin808 committed Aug 16, 2017
1 parent fe57b3e commit d50ba6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/generators/react_on_rails/base_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def add_hello_world_route
end

def update_git_ignore
# NOTE: keep blank line at top in case existing .gitignore does not end in a newline
data = <<-DATA.strip_heredoc
# React on Rails
npm-debug.log*
node_modules
Expand Down

0 comments on commit d50ba6b

Please sign in to comment.