Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / g / gitmoji.rb
blob87591f593140614faf3934367ee490774b74e999
1 class Gitmoji < Formula
2   desc "Interactive command-line tool for using emoji in commit messages"
3   homepage "https://gitmoji.dev"
4   url "https://registry.npmjs.org/gitmoji-cli/-/gitmoji-cli-9.5.0.tgz"
5   sha256 "b9c89644fac844f521afcdc2b31e57da7ac7e123df92d16c4fdf79190622a5b4"
6   license "MIT"
8   bottle do
9     rebuild 1
10     sha256 cellar: :any_skip_relocation, all: "bbfbb3f96888616a56eaa944a5a1b2da387071659545aa8cca870797ed8f1fbc"
11   end
13   depends_on "node"
15   def install
16     system "npm", "install", *std_npm_args
17     files = ["global-directory/index.d.ts", "npm-run-path/node_modules/path-key/index.d.ts",
18              "path-key/index.d.ts", "xdg-basedir/index.d.ts", "xdg-basedir/index.js",
19              "npm-run-path/index.d.ts", "global-directory/index.js", "@pnpm/npm-conf/lib/defaults.js"]
20     files.each do |file|
21       inreplace libexec/"lib/node_modules/gitmoji-cli/node_modules/#{file}", "/usr/local", "@@HOMEBREW_PREFIX@@"
22     end
23     bin.install_symlink Dir["#{libexec}/bin/*"]
24   end
26   test do
27     assert_match ":bug:", shell_output("#{bin}/gitmoji --search bug")
28   end
29 end