method
install_javascript_dependencies
v7.0.0 -
Show latest stable
- Class:
ActionText::Generators::InstallGenerator
install_javascript_dependencies()public
No documentation available.
# File actiontext/lib/generators/action_text/install/install_generator.rb, line 11
def install_javascript_dependencies
if Pathname(destination_root).join("package.json").exist?
say "Installing JavaScript dependencies", :green
run "yarn add @rails/actiontext trix"
end
end