Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[w*-z*]: use *std_npm_args #178610

Merged
merged 9 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Formula/w/web-ext.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WebExt < Formula
desc "Command-line tool to help build, run, and test web extensions"
homepage "https://github.com/mozilla/web-ext"
Expand All @@ -24,7 +22,7 @@ class WebExt < 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/*"]

# Remove vendored pre-built binary `terminal-notifier`
Expand Down
5 changes: 2 additions & 3 deletions Formula/w/webpack.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "language/node"
require "json"

class Webpack < Formula
Expand Down Expand Up @@ -31,7 +30,7 @@ def install
buildpath.install resource("webpack-cli")

cd buildpath/"node_modules/webpack" do
system "npm", "install", *Language::Node.local_npm_install_args, "--legacy-peer-deps"
system "npm", "install", *std_npm_args(prefix: false), "--legacy-peer-deps"
end

# declare webpack as a bundledDependency of webpack-cli
Expand All @@ -40,7 +39,7 @@ def install
pkg_json["bundleDependencies"] = ["webpack"]
File.write("package.json", JSON.pretty_generate(pkg_json))

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

bin.install_symlink libexec/"bin/webpack-cli"
bin.install_symlink libexec/"bin/webpack-cli" => "webpack"
Expand Down
4 changes: 1 addition & 3 deletions Formula/w/webpod.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Webpod < Formula
desc "Deploy websites and apps anywhere"
homepage "https://webpod.dev"
Expand All @@ -14,7 +12,7 @@ class Webpod < 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/w/webtorrent-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WebtorrentCli < Formula
desc "Command-line streaming torrent client"
homepage "https://webtorrent.io/"
Expand All @@ -23,7 +21,7 @@ class WebtorrentCli < 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/*"]

# Remove incompatible pre-built binaries
Expand Down
4 changes: 1 addition & 3 deletions Formula/w/whistle.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Whistle < Formula
desc "HTTP, HTTP2, HTTPS, Websocket debugging proxy"
homepage "https://github.com/avwo/whistle"
Expand All @@ -20,7 +18,7 @@ class Whistle < 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/w/wikibase-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WikibaseCli < Formula
desc "Command-line interface to Wikibase"
homepage "https://github.com/maxlath/wikibase-cli"
Expand All @@ -20,7 +18,7 @@ class WikibaseCli < 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/w/write-good.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WriteGood < Formula
desc "Naive linter for English prose"
homepage "https://github.com/btford/write-good"
Expand All @@ -24,7 +22,7 @@ class WriteGood < 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/y/yaml-language-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class YamlLanguageServer < Formula
desc "Language Server for Yaml Files"
homepage "https://github.com/redhat-developer/yaml-language-server"
Expand All @@ -20,7 +18,7 @@ class YamlLanguageServer < 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/y/yo.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Yo < Formula
desc "CLI tool for running Yeoman generators"
homepage "https://yeoman.io"
Expand All @@ -20,7 +18,7 @@ class Yo < 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
Loading