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"
10 sha256 cellar: :any_skip_relocation, all: "bbfbb3f96888616a56eaa944a5a1b2da387071659545aa8cca870797ed8f1fbc"
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"]
21 inreplace libexec/"lib/node_modules/gitmoji-cli/node_modules/#{file}", "/usr/local", "@@HOMEBREW_PREFIX@@"
23 bin.install_symlink Dir["#{libexec}/bin/*"]
27 assert_match ":bug:", shell_output("#{bin}/gitmoji --search bug")