We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ShopifyCli::JsDeps ensures that all JavaScript dependencies are installed for projects.
install(ctx, verbose = false) Proxy to instance method ShopifyCli::JsDeps.new.install.
install(ctx, verbose = false)
ctx
verbose
ShopifyCli::JsDeps.install(ctx)
# File lib/shopify-cli/js_deps.rb, line 24 def self.install(ctx, verbose = false) new(ctx: ctx).install(verbose) end
install(verbose = false) Installs all of a project's JavaScript dependencies using Yarn or NPM, based on the project's settings.
install(verbose = false)
# context is the running context for the command ShopifyCli::JsDeps.new(context).install(true)
# File lib/shopify-cli/js_deps.rb, line 39 def install(verbose = false) title = ctx.message("core.js_deps.installing", @system.package_manager) success = ctx.message("core.js_deps.installed") failure = ctx.message("core.js_deps.error.install_error", @system.package_manager) CLI::UI::Frame.open(title, success_text: success, failure_text: failure) do @system.call( yarn: -> { yarn(verbose) }, npm: -> { npm(verbose) } ) end end