diff options
author | kami-zh <hiroki.zenigami@gmail.com> | 2017-09-16 03:03:20 +0900 |
---|---|---|
committer | kami-zh <hiroki.zenigami@gmail.com> | 2017-09-16 03:03:20 +0900 |
commit | bad8c9ccc91211e06e1f92b21d5eed15b2f7b2c0 (patch) | |
tree | 2b0c2ed7c9684e626140eba3b1c84de6a7f421dc | |
parent | 81a2e1cb278bccdf75591e454dfbbe476989f059 (diff) | |
download | rails-bad8c9ccc91211e06e1f92b21d5eed15b2f7b2c0.tar.gz rails-bad8c9ccc91211e06e1f92b21d5eed15b2f7b2c0.tar.bz2 rails-bad8c9ccc91211e06e1f92b21d5eed15b2f7b2c0.zip |
Install JavaScript dependencies on update
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/update.tt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/update.tt b/railties/lib/rails/generators/rails/app/templates/bin/update.tt index d744bec32f..70cc71d83b 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/update.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/update.tt @@ -15,6 +15,11 @@ chdir APP_ROOT do puts '== Installing dependencies ==' system! 'gem install bundler --conservative' system('bundle check') || system!('bundle install') +<% unless options.skip_yarn? -%> + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') +<% end -%> <% unless options.skip_active_record? -%> puts "\n== Updating database ==" |