Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yo 5.0.0 (new formula) #165919

Merged
merged 2 commits into from Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/autobump.txt
Expand Up @@ -1840,6 +1840,7 @@ yamale
yamllint
ykman
yle-dl
yo
yosys
youtubedr
yq
Expand Down
31 changes: 31 additions & 0 deletions Formula/y/yo.rb
@@ -0,0 +1,31 @@
require "language/node"

class Yo < Formula
Anselmoo marked this conversation as resolved.
Show resolved Hide resolved
desc "CLI tool for running Yeoman generators"
homepage "https://yeoman.io"
url "https://registry.npmjs.org/yo/-/yo-5.0.0.tgz"
sha256 "4395888eda54803a590d20d92b285c4abebd81402908b5becdf9cbc6cbeba65f"
license "BSD-2-Clause"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "3952f75866cc905302121f85682493adffe8f27e1f4d32109fecfb1604692cd3"
sha256 cellar: :any_skip_relocation, arm64_ventura: "3952f75866cc905302121f85682493adffe8f27e1f4d32109fecfb1604692cd3"
sha256 cellar: :any_skip_relocation, arm64_monterey: "3952f75866cc905302121f85682493adffe8f27e1f4d32109fecfb1604692cd3"
sha256 cellar: :any_skip_relocation, sonoma: "7b66073b40d522594a57debc8312dbbd7799f9ed75fcc7e58f82834428aa41d3"
sha256 cellar: :any_skip_relocation, ventura: "7b66073b40d522594a57debc8312dbbd7799f9ed75fcc7e58f82834428aa41d3"
sha256 cellar: :any_skip_relocation, monterey: "7b66073b40d522594a57debc8312dbbd7799f9ed75fcc7e58f82834428aa41d3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3952f75866cc905302121f85682493adffe8f27e1f4d32109fecfb1604692cd3"
end

depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end

test do
assert_match version.to_s, shell_output("#{bin}/yo --version")
assert_match "Everything looks all right!", shell_output("#{bin}/yo doctor")
end
end