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 1 commit
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
21 changes: 21 additions & 0 deletions Formula/y/yo.rb
@@ -0,0 +1,21 @@
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"

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