Skip to content

Commit

Permalink
Merge pull request #178538 from branchvincent/std_npm_args
Browse files Browse the repository at this point in the history
a*: use `std_npm_args`
  • Loading branch information
BrewTestBot committed Aug 2, 2024
2 parents 202f1c0 + 65ebfec commit 9de0de6
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 49 deletions.
4 changes: 1 addition & 3 deletions Formula/a/aicommits.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Aicommits < Formula
desc "Writes your git commit messages for you with AI"
homepage "https://github.com/Nutlope/aicommits"
Expand All @@ -14,7 +12,7 @@ class Aicommits < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/alexjs.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Alexjs < Formula
desc "Catch insensitive, inconsiderate writing"
homepage "https://alexjs.com"
Expand All @@ -22,7 +20,7 @@ class Alexjs < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/angular-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class AngularCli < Formula
desc "CLI tool for Angular"
homepage "https://angular.dev/cli"
Expand All @@ -20,7 +18,7 @@ class AngularCli < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/ansible-language-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class AnsibleLanguageServer < Formula
desc "Language Server for Ansible Files"
homepage "https://github.com/ansible/vscode-ansible"
Expand All @@ -20,7 +18,7 @@ class AnsibleLanguageServer < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/apidoc.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Apidoc < Formula
desc "RESTful web API Documentation Generator"
homepage "https://apidocjs.com"
Expand All @@ -24,7 +22,7 @@ class Apidoc < Formula
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/*"]

# Extract native slices from universal binaries
Expand Down
2 changes: 1 addition & 1 deletion Formula/a/apify-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ApifyCli < Formula
depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
# We have to replace the shebang in the main executable from "/usr/bin/env node"
# to point to the Homebrew-provided `node`,
# because otherwise the CLI will run with the system-provided Node.js,
Expand Down
4 changes: 1 addition & 3 deletions Formula/a/appium.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Appium < Formula
desc "Automation for Apps"
homepage "https://appium.io/"
Expand All @@ -25,7 +23,7 @@ class Appium < Formula
end

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

Expand Down
4 changes: 1 addition & 3 deletions Formula/a/appwrite.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Appwrite < Formula
desc "Command-line tool for Appwrite"
homepage "https://appwrite.io"
Expand All @@ -20,7 +18,7 @@ class Appwrite < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/artillery.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Artillery < Formula
desc "Cloud-native performance & reliability testing for developers and SREs"
homepage "https://artillery.io/"
Expand Down Expand Up @@ -29,7 +27,7 @@ class Artillery < Formula
end

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
4 changes: 1 addition & 3 deletions Formula/a/ask-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class AskCli < Formula
desc "CLI tool for Alexa Skill Kit"
homepage "https://github.com/alexa/ask-cli"
Expand All @@ -20,7 +18,7 @@ class AskCli < Formula
depends_on "node"

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

# Replace universal binaries with native slices
Expand Down
4 changes: 1 addition & 3 deletions Formula/a/astgen.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Astgen < Formula
desc "Generate AST in json format for JS/TS"
homepage "https://github.com/joernio/astgen"
Expand All @@ -23,7 +21,7 @@ class Astgen < Formula

def install
# Disable custom postinstall script
system "npm", "install", *Language::Node.std_npm_install_args(libexec), "--ignore-scripts"
system "npm", "install", *std_npm_args, "--ignore-scripts"
bin.install_symlink Dir["#{libexec}/bin/*"]
end

Expand Down
4 changes: 1 addition & 3 deletions Formula/a/asyncapi.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Asyncapi < Formula
desc "All in one CLI for all AsyncAPI tools"
homepage "https://github.com/asyncapi/cli"
Expand All @@ -20,7 +18,7 @@ class Asyncapi < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/autocannon.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Autocannon < Formula
desc "Fast HTTP/1.1 benchmarking tool written in Node.js"
homepage "https://github.com/mcollina/autocannon"
Expand All @@ -14,7 +12,7 @@ class Autocannon < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/autocode.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Autocode < Formula
desc "Code automation for every language, library and framework"
homepage "https://autocode.readme.io/"
Expand Down Expand Up @@ -28,7 +26,7 @@ class Autocode < Formula
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
4 changes: 1 addition & 3 deletions Formula/a/autorest.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Autorest < Formula
desc "Swagger (OpenAPI) Specification code generator"
homepage "https://github.com/Azure/autorest"
Expand All @@ -25,7 +23,7 @@ class Autorest < Formula
end

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
4 changes: 1 addition & 3 deletions Formula/a/aws-auth.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class AwsAuth < Formula
desc "Allows you to programmatically authenticate into AWS accounts through IAM roles"
homepage "https://github.com/iamarkadyt/aws-auth"
Expand All @@ -20,7 +18,7 @@ class AwsAuth < Formula
depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink libexec.glob("bin/*")
end

Expand Down
4 changes: 1 addition & 3 deletions Formula/a/aws-cdk.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class AwsCdk < Formula
desc "AWS Cloud Development Kit - framework for defining AWS infra as code"
homepage "https://github.com/aws/aws-cdk"
Expand All @@ -20,7 +18,7 @@ class AwsCdk < Formula
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 native slices.
Expand Down

0 comments on commit 9de0de6

Please sign in to comment.