Skip to content

Commit

Permalink
Merge pull request #179243 from branchvincent/std_npm_args-t
Browse files Browse the repository at this point in the history
t*: use `std_npm_args`
  • Loading branch information
BrewTestBot committed Aug 1, 2024
2 parents ddde1ff + c4eafeb commit cf219a2
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 70 deletions.
19 changes: 9 additions & 10 deletions Formula/t/tailwindcss-language-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class TailwindcssLanguageServer < Formula
desc "LSP for TailwindCSS"
homepage "https://github.com/tailwindlabs/tailwindcss-intellisense/tree/HEAD/packages/tailwindcss-language-server"
Expand All @@ -8,19 +6,20 @@ class TailwindcssLanguageServer < Formula
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "09713733f9477fd87a6b1372a3c37df8513633be5d17e8f8d37856c463c707d1"
sha256 cellar: :any_skip_relocation, arm64_ventura: "09713733f9477fd87a6b1372a3c37df8513633be5d17e8f8d37856c463c707d1"
sha256 cellar: :any_skip_relocation, arm64_monterey: "09713733f9477fd87a6b1372a3c37df8513633be5d17e8f8d37856c463c707d1"
sha256 cellar: :any_skip_relocation, sonoma: "822e1cdd528c3e1d0b81afdca82a3a9c73504c5ec6b01a1c5b19c1204b246dd3"
sha256 cellar: :any_skip_relocation, ventura: "822e1cdd528c3e1d0b81afdca82a3a9c73504c5ec6b01a1c5b19c1204b246dd3"
sha256 cellar: :any_skip_relocation, monterey: "84919cdbe25e334bead4a21d1a1d73a25722fd33d7a69ec7ea130fba7cf5a31e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2a3ca13a77ad23454ecdf5b568ec9c836a96ad358c8bb5cb5cfab8387888dbea"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "faed41d6cf60bdd9c34c5255db344c1657f8c4b0abefa15761619163edae4426"
sha256 cellar: :any_skip_relocation, arm64_ventura: "faed41d6cf60bdd9c34c5255db344c1657f8c4b0abefa15761619163edae4426"
sha256 cellar: :any_skip_relocation, arm64_monterey: "faed41d6cf60bdd9c34c5255db344c1657f8c4b0abefa15761619163edae4426"
sha256 cellar: :any_skip_relocation, sonoma: "6c08f1aa1d388193ae35d2c6f4686b1c6d6a82d2b4c25b2765cec398a2b6e8bb"
sha256 cellar: :any_skip_relocation, ventura: "6c08f1aa1d388193ae35d2c6f4686b1c6d6a82d2b4c25b2765cec398a2b6e8bb"
sha256 cellar: :any_skip_relocation, monterey: "6c08f1aa1d388193ae35d2c6f4686b1c6d6a82d2b4c25b2765cec398a2b6e8bb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "96f2ebbb8406cbe07116775eebe724abe2d4115ac8f5162f44a7e0d32e8980ea"
end

depends_on "node"

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

# Replace universal binaries with their native slices
Expand Down
21 changes: 10 additions & 11 deletions Formula/t/tailwindcss.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Tailwindcss < Formula
desc "Utility-first CSS framework"
homepage "https://tailwindcss.com"
Expand All @@ -8,23 +6,24 @@ class Tailwindcss < Formula
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8d27c49f81d7235d86dfdacf4212bd5e541967e914e280e72771f3b201896f20"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4c50c6056c22a72b35374a30aa2a094b7c8c27a3900bb09d7d4dfb51679c4d88"
sha256 cellar: :any_skip_relocation, arm64_monterey: "4c50c6056c22a72b35374a30aa2a094b7c8c27a3900bb09d7d4dfb51679c4d88"
sha256 cellar: :any_skip_relocation, sonoma: "bab433abcb45f14adf4612e2b7498b096e1fe80d3a0fc8787bbb9eaeba9a4168"
sha256 cellar: :any_skip_relocation, ventura: "0e4bb2e3d9f65a95e8e40545bc8d822750d880b8378e5a86ad223ead76485aea"
sha256 cellar: :any_skip_relocation, monterey: "9fb8c6304174372bd664c48945561b8dfeef522943495212576ce46159026a93"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7dbd40b813790067933d85ec9580cb85d3c55dfcca9b71958c39ebfd1ffce17b"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ea7e52e250d828c24b90cdb44ea2af1a3d81f183799308849bf46ae724a80628"
sha256 cellar: :any_skip_relocation, arm64_ventura: "d12ddea4769651fb5bbbb9fd11ef15ce3d2ab651f4eeed69bc05877fd42cb762"
sha256 cellar: :any_skip_relocation, arm64_monterey: "d12ddea4769651fb5bbbb9fd11ef15ce3d2ab651f4eeed69bc05877fd42cb762"
sha256 cellar: :any_skip_relocation, sonoma: "5d53668104032e97a84d365ad86e40d42457b70477f53c7977114970ff585a96"
sha256 cellar: :any_skip_relocation, ventura: "5eef39fef7a8fe4cb1b267a8cc05bd98c64ef9b6f28a151fb524ef381143894c"
sha256 cellar: :any_skip_relocation, monterey: "5eef39fef7a8fe4cb1b267a8cc05bd98c64ef9b6f28a151fb524ef381143894c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "839ac55cc5938312b8146b1825788ddaa244e009fe04f5f912327c8be5789e6b"
end

depends_on "node" => :build

def install
system "npm", "install", *Language::Node.local_npm_install_args
system "npm", "install", *std_npm_args(prefix: false)
system "npm", "run", "build"

cd "standalone-cli" do
system "npm", "install", *Language::Node.local_npm_install_args
system "npm", "install", *std_npm_args(prefix: false)
system "npm", "run", "build"
os = OS.mac? ? "macos" : "linux"
cpu = Hardware::CPU.arm? ? "arm64" : "x64"
Expand Down
22 changes: 9 additions & 13 deletions Formula/t/terrahub.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Terrahub < Formula
desc "Terraform automation and orchestration tool"
homepage "https://docs.terrahub.io"
Expand All @@ -13,22 +11,20 @@ class Terrahub < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "3190af7ca474630c4d8ee445b0dbb8241d64d876621ffb326a4b7334f34bd86c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "53cdaed21f507b80fef55ee2f4fd0ac0b6f0b5b381cb513e1b8d95c5c10cfab5"
sha256 cellar: :any_skip_relocation, arm64_monterey: "d58eef3198f6b31645a2917117c6a993fdc4cc9210c1ba094fd3eca7ead44fb6"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d58eef3198f6b31645a2917117c6a993fdc4cc9210c1ba094fd3eca7ead44fb6"
sha256 cellar: :any_skip_relocation, sonoma: "80e878ac2cf7f29ac02df99f02f2e05fa528aa791314199819d2deef0e40b704"
sha256 cellar: :any_skip_relocation, ventura: "cd5ed45a5ebea49b52f67d81f04a5a5c2236e797c38b14a5927be87df64bb9c3"
sha256 cellar: :any_skip_relocation, monterey: "340fc28fb08e1437212792e0bbd02220d2af586f6234b326a5bcc6b3274869c7"
sha256 cellar: :any_skip_relocation, big_sur: "340fc28fb08e1437212792e0bbd02220d2af586f6234b326a5bcc6b3274869c7"
sha256 cellar: :any_skip_relocation, catalina: "340fc28fb08e1437212792e0bbd02220d2af586f6234b326a5bcc6b3274869c7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d58eef3198f6b31645a2917117c6a993fdc4cc9210c1ba094fd3eca7ead44fb6"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "c1c3889a86c9e36878ef3e3e9695c1033e06ba5843c58a9dc852684f0ee9911b"
sha256 cellar: :any_skip_relocation, arm64_ventura: "c1c3889a86c9e36878ef3e3e9695c1033e06ba5843c58a9dc852684f0ee9911b"
sha256 cellar: :any_skip_relocation, arm64_monterey: "c1c3889a86c9e36878ef3e3e9695c1033e06ba5843c58a9dc852684f0ee9911b"
sha256 cellar: :any_skip_relocation, sonoma: "bf9b067ad0af2c0b17f573103306810203382430682d497201701f944d4394b8"
sha256 cellar: :any_skip_relocation, ventura: "bf9b067ad0af2c0b17f573103306810203382430682d497201701f944d4394b8"
sha256 cellar: :any_skip_relocation, monterey: "bf9b067ad0af2c0b17f573103306810203382430682d497201701f944d4394b8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4916e5335be420a247d7aa5785bb29ac1e17d3bd55015e3cb8d75e726b73d656"
end

depends_on "node"

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

Expand Down
21 changes: 10 additions & 11 deletions Formula/t/triton.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Triton < Formula
desc "Joyent Triton CLI"
homepage "https://www.npmjs.com/package/triton"
Expand All @@ -8,21 +6,22 @@ class Triton < Formula
license "MPL-2.0"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a66f2366eea24eacb2940b327488b27e2b26a6d5737693c375326364367c4c40"
sha256 cellar: :any_skip_relocation, arm64_ventura: "28256a7d9f35ea60afd891a0d172343ceae27c621dd6422d17e120abcde14b85"
sha256 cellar: :any_skip_relocation, arm64_monterey: "30102eb7e18ddc9be24b2cf213ee65ab66e06e9d83ba3c7685f5dadc3ba72ee0"
sha256 cellar: :any_skip_relocation, sonoma: "fedbf78360820022b214d3dccb7901af846079a8d1603721766b7aa44c6ad5f1"
sha256 cellar: :any_skip_relocation, ventura: "338ac6c0a0aa62fbee00380cbea7eff8af1b89635de8d0fa0df8b83b0928b3fc"
sha256 cellar: :any_skip_relocation, monterey: "40bfc0f5e498f35154dbaee91aa9ba479def608d0ceff6e93abad4c1fcee1281"
sha256 cellar: :any_skip_relocation, x86_64_linux: "638cb432ca800e41a289be9ed827f94a96e827c38a4cd416540c0fbc4c17b75e"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "335c7ce7476abb0b30ec27480b0eb18e60d11771ee0bed1baa90ecfe79949d0d"
sha256 cellar: :any_skip_relocation, arm64_ventura: "b5d51a665b609e9e1a536e91ffc13930f695cc96265b2905e15804760f4cf8e8"
sha256 cellar: :any_skip_relocation, arm64_monterey: "04be8789f7840d7b88ef1402e3ed3e686e5c5e115bbaa90b46633b47ba4750bb"
sha256 cellar: :any_skip_relocation, sonoma: "2d149dcabb4fe72ca676257c3f21cd6d04cdb03fae0fc279e2ad2cb430dc916e"
sha256 cellar: :any_skip_relocation, ventura: "1cfc86cf1a4166d848d6e6dcc2c8a64ed89a2cbc8f15f2136b6396c7877b8cd1"
sha256 cellar: :any_skip_relocation, monterey: "61eda1b0dc67fa27004de110b8ec47d4d0702bfa5f0b7d4499155a897f62d513"
sha256 cellar: :any_skip_relocation, x86_64_linux: "46eee957ebc27472822c184984ab5534641818668b31408a135d5709f7295789"
end

depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
generate_completions_from_executable(bin/"triton", "completion", shells: [:bash], shell_parameter_format: :none)
generate_completions_from_executable(bin/"triton", "completion", shells: [:bash])
end

test do
Expand Down
20 changes: 9 additions & 11 deletions Formula/t/truffle.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Truffle < Formula
desc "Development environment, testing framework and asset pipeline for Ethereum"
homepage "https://trufflesuite.com"
Expand All @@ -8,20 +6,20 @@ class Truffle < Formula
license "MIT"

bottle do
rebuild 1
sha256 arm64_sonoma: "bf976e193aaab626da6ba2c5153e2c73cb8b4cca2085a4eddd0d1af149d35a91"
sha256 arm64_ventura: "e25bde3e668ae14b3548da278b94470c6331c1aab5ad70e12fe84a8a5283054a"
sha256 arm64_monterey: "7c9383f39c371ec41e8423c6238fefb205a5a4473b780813343d74393ec220a8"
sha256 sonoma: "4ba206f662ce3535a93392f257a6dd1a53b68c94afb91800bf8194db088bf782"
sha256 ventura: "3d8364ecd6eaef5f0987102fdbd3edfa82553a4c47cadd97619abf548267c64f"
sha256 monterey: "00a57fe89b291ec2b55c81c88e98c72b238690abbff59a5f0f6ef85545b6ad62"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d8dae03cb8c5330f85e9b7b81937b3ea5100309f64e9990b8def34242ad5bd24"
rebuild 2
sha256 arm64_sonoma: "92ad4c83b95c30319d61cfe06957a32f10b288c01cbcc8fec77dd1377d2f53ad"
sha256 arm64_ventura: "7e859053402f47674c30baebf3b5aa05ad21609471ab14d222dd9aee2b62a3b4"
sha256 arm64_monterey: "dc749938200b0b6aed95ac1103daf87ac555b729862e55767163936f0b1c26e8"
sha256 sonoma: "3f7dbf05369a67669711f1d7358446c46380a5caf38b599d1653156441d5e60e"
sha256 ventura: "7fda9c9211a1884fe42f87dcdfe896eb35d8e5dd332e324d0fb25230417e3c1a"
sha256 monterey: "ea609ec0150beda892f4bdad71aff910c78fbe91338798e8a6a65c37a0434f11"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9db01e2a5e1d9ab923419eafc7a0588dd02bca55f62310277838a41d4cc5c653"
end

depends_on "node"

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

truffle_dir = libexec/"lib/node_modules/truffle"
Expand Down
13 changes: 9 additions & 4 deletions Formula/t/typescript-language-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class TypescriptLanguageServer < Formula
desc "Language Server Protocol implementation for TypeScript wrapping tsserver"
homepage "https://github.com/typescript-language-server/typescript-language-server"
Expand All @@ -8,14 +6,21 @@ class TypescriptLanguageServer < Formula
license all_of: ["MIT", "Apache-2.0"]

bottle do
sha256 cellar: :any_skip_relocation, all: "a8cb6820449852e3ef466eda32f7a5f55a3473d0fdde51624beaac49b21ae1f4"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "bec63299439d68c64e8708c57a32baa931bb6c8406e6869597bcddccb1014fd4"
sha256 cellar: :any_skip_relocation, arm64_ventura: "bec63299439d68c64e8708c57a32baa931bb6c8406e6869597bcddccb1014fd4"
sha256 cellar: :any_skip_relocation, arm64_monterey: "bec63299439d68c64e8708c57a32baa931bb6c8406e6869597bcddccb1014fd4"
sha256 cellar: :any_skip_relocation, sonoma: "bec63299439d68c64e8708c57a32baa931bb6c8406e6869597bcddccb1014fd4"
sha256 cellar: :any_skip_relocation, ventura: "bec63299439d68c64e8708c57a32baa931bb6c8406e6869597bcddccb1014fd4"
sha256 cellar: :any_skip_relocation, monterey: "bec63299439d68c64e8708c57a32baa931bb6c8406e6869597bcddccb1014fd4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "086d02b72242797c29431078c399e4daf1ffa3c27bf48bf65984d09e86dc403c"
end

depends_on "node"
depends_on "typescript"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args

node_modules = libexec/"lib/node_modules"
typescript = Formula["typescript"].opt_libexec/"lib/node_modules/typescript"
Expand Down
19 changes: 9 additions & 10 deletions Formula/t/typescript.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Typescript < Formula
desc "Language for application scale JavaScript development"
homepage "https://www.typescriptlang.org/"
Expand All @@ -9,19 +7,20 @@ class Typescript < Formula
head "https://github.com/Microsoft/TypeScript.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "25b52ba2261a608f73fe5eb6cb4f1289106de099ce3d7f396609fffd373d0fb1"
sha256 cellar: :any_skip_relocation, arm64_ventura: "25b52ba2261a608f73fe5eb6cb4f1289106de099ce3d7f396609fffd373d0fb1"
sha256 cellar: :any_skip_relocation, arm64_monterey: "25b52ba2261a608f73fe5eb6cb4f1289106de099ce3d7f396609fffd373d0fb1"
sha256 cellar: :any_skip_relocation, sonoma: "25b52ba2261a608f73fe5eb6cb4f1289106de099ce3d7f396609fffd373d0fb1"
sha256 cellar: :any_skip_relocation, ventura: "25b52ba2261a608f73fe5eb6cb4f1289106de099ce3d7f396609fffd373d0fb1"
sha256 cellar: :any_skip_relocation, monterey: "25b52ba2261a608f73fe5eb6cb4f1289106de099ce3d7f396609fffd373d0fb1"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8de159428e45a63d940c2cf360d435a89db9bd9bd7089075b6f66977b635d8ee"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "25f20a66c0ccdb3f5a1dbcc8587ab3ea5e0fb54e68e550d372e560ffe830be09"
sha256 cellar: :any_skip_relocation, arm64_ventura: "25f20a66c0ccdb3f5a1dbcc8587ab3ea5e0fb54e68e550d372e560ffe830be09"
sha256 cellar: :any_skip_relocation, arm64_monterey: "25f20a66c0ccdb3f5a1dbcc8587ab3ea5e0fb54e68e550d372e560ffe830be09"
sha256 cellar: :any_skip_relocation, sonoma: "25f20a66c0ccdb3f5a1dbcc8587ab3ea5e0fb54e68e550d372e560ffe830be09"
sha256 cellar: :any_skip_relocation, ventura: "25f20a66c0ccdb3f5a1dbcc8587ab3ea5e0fb54e68e550d372e560ffe830be09"
sha256 cellar: :any_skip_relocation, monterey: "25f20a66c0ccdb3f5a1dbcc8587ab3ea5e0fb54e68e550d372e560ffe830be09"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ab7c9619010eaef83e59fa9c5fc564a42c7bbfaa0eb47ebc6af6f99440789c0f"
end

depends_on "node"

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

Expand Down

0 comments on commit cf219a2

Please sign in to comment.