instance method
js_dependencies
Ruby on Rails 6.1.7.10
Since v6.1.7.10 Last seen in v6.1.7.10 PrivateSignature
js_dependencies()
No documentation comment.
Source
# File actiontext/lib/generators/action_text/install/install_generator.rb, line 60
def js_dependencies
js_package = JSON.load(Pathname.new("#{GEM_ROOT}/package.json"))
js_package["peerDependencies"].merge \
js_package["name"] => "^#{js_package["version"]}"
end
Defined in actiontext/lib/generators/action_text/install/install_generator.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Generators::InstallGenerator