diff options
author | Liceth Ovalles <liceova22@gmail.com> | 2016-11-20 16:37:37 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2016-11-28 12:11:08 -0500 |
commit | 732702b56b4fcf4df374dee123fbce3b38e7a1a0 (patch) | |
tree | 0ecd8adf206ec5fa3a190fb279d1508eb1cbf8e1 /railties/lib/rails/generators/rails | |
parent | e6730c7ffbf51c985611d9281e3d080880eb3366 (diff) | |
download | rails-732702b56b4fcf4df374dee123fbce3b38e7a1a0.tar.gz rails-732702b56b4fcf4df374dee123fbce3b38e7a1a0.tar.bz2 rails-732702b56b4fcf4df374dee123fbce3b38e7a1a0.zip |
Add node_modules to default gitignore
Diffstat (limited to 'railties/lib/rails/generators/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/gitignore | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/gitignore b/railties/lib/rails/generators/rails/app/templates/gitignore index 0e66cc4237..bdcbe8d629 100644 --- a/railties/lib/rails/generators/rails/app/templates/gitignore +++ b/railties/lib/rails/generators/rails/app/templates/gitignore @@ -21,5 +21,10 @@ !/tmp/.keep <% end -%> +<% if options[:yarn] -%> +# Ignore node modules. +/node_modules/* + +<% end -%> # Ignore Byebug command history file. .byebug_history |