1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Run app:update:bin from actiontext generator

This commit is contained in:
Vinicius Stock 2019-10-28 13:31:44 -04:00
parent 0bc9c16ffc
commit 028d1611cd
No known key found for this signature in database
GPG key ID: 1A3EC85374C0969A

View file

@ -9,8 +9,7 @@ module ActionText
source_root File.expand_path("templates", __dir__)
def install_javascript_dependencies
template "#{GEM_ROOT}/../railties/lib/rails/generators/rails/app/templates/bin/yarn.tt",
"bin/yarn"
run "rake app:update:bin"
say "Installing JavaScript dependencies"
run "yarn add #{js_dependencies.map { |name, version| "#{name}@#{version}" }.join(" ")}",