From 6cbb3d73a8ba01d5057b557059b63909687c987b Mon Sep 17 00:00:00 2001 From: alphavitor Date: Mon, 25 Sep 2023 08:59:07 +0100 Subject: [PATCH] Adds lerna, .gitignore, updates README --- .gitignore | 1 + Formula/lerna.rb | 34 ++++++++++++++++++++++++++++++++++ README.md | 10 +++++++++- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Formula/lerna.rb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/Formula/lerna.rb b/Formula/lerna.rb new file mode 100644 index 0000000..31a8f94 --- /dev/null +++ b/Formula/lerna.rb @@ -0,0 +1,34 @@ +require "language/node" + +class Lerna < Formula + desc "Tool for managing JavaScript projects with multiple packages" + homepage "https://lerna.js.org" + url "https://registry.npmjs.org/lerna/-/lerna-5.1.8.tgz" + sha256 "96a2982e085ac6aa6966a71a615143f37ca923b80eb79c232cafcfe2594f8b2e" + license "MIT" + + bottle do + sha256 cellar: :any_skip_relocation, arm64_ventura: "848bd852dff3144fbb64e86d2360e7fdf48956cad43d2db8f6ab07a2ec32cbf0" + sha256 cellar: :any_skip_relocation, arm64_monterey: "3c83fd1b45bedae4abee157231b5fe78331ac14948e3e99c183a71eda10ce4d0" + sha256 cellar: :any_skip_relocation, arm64_big_sur: "3c83fd1b45bedae4abee157231b5fe78331ac14948e3e99c183a71eda10ce4d0" + sha256 cellar: :any_skip_relocation, ventura: "e543b304f8cae65e7910c34ad9199b350a0fc4b47be6ce062e9402abde4f4d0c" + sha256 cellar: :any_skip_relocation, monterey: "a6c8f333fd0d643184f63379826daf456f29566fd754393fd3330837abf93d6a" + sha256 cellar: :any_skip_relocation, big_sur: "a6c8f333fd0d643184f63379826daf456f29566fd754393fd3330837abf93d6a" + sha256 cellar: :any_skip_relocation, catalina: "a6c8f333fd0d643184f63379826daf456f29566fd754393fd3330837abf93d6a" + sha256 cellar: :any_skip_relocation, x86_64_linux: "3c83fd1b45bedae4abee157231b5fe78331ac14948e3e99c183a71eda10ce4d0" + 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}/lerna --version") + + output = shell_output("#{bin}/lerna init --independent 2>&1") + assert_match "lerna success Initialized Lerna files", output + end +end diff --git a/README.md b/README.md index 5a25c9a..dcff2cd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # tap -Homebrew repository for alphasights dependencies +Homebrew repository for alphasights legacy dependencies + +# Example on how to install `lerna` +## Uninstall any old versions +`brew uninstall -f lerna` +## Add this repository +`brew tap alphasights/tap https://github.com/alphasights/tap` +## Install this reposotory's specific version +`brew install alphasights/tap/lerna`