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

u,v,z*: use std_npm_args #179358

Merged
merged 14 commits into from
Aug 2, 2024
4 changes: 1 addition & 3 deletions Formula/v/vercel-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class VercelCli < Formula
desc "Command-line interface for Vercel"
homepage "https://vercel.com/home"
Expand All @@ -22,7 +20,7 @@ class VercelCli < Formula
def install
inreplace "dist/index.js", "${await getUpdateCommand()}",
"brew upgrade vercel-cli"
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]

# Remove incompatible deasync modules
Expand Down
4 changes: 1 addition & 3 deletions Formula/v/vite.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Vite < Formula
desc "Next generation frontend tooling. It's fast!"
homepage "https://vitejs.dev/"
Expand All @@ -20,7 +18,7 @@ class Vite < 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
5 changes: 2 additions & 3 deletions Formula/v/vsce.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require "language/node"

class Vsce < Formula

Check warning on line 1 in Formula/v/vsce.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict vsce` failed on Linux!

Indirect dependencies with linkage: glib
desc "Tool for packaging, publishing and managing VS Code extensions"
homepage "https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce"
url "https://registry.npmjs.org/vsce/-/vsce-2.15.0.tgz"
Expand All @@ -26,13 +24,14 @@
end

depends_on "node"

on_linux do
depends_on "pkg-config" => :build
depends_on "libsecret"
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/v/vscode-langservers-extracted.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class VscodeLangserversExtracted < Formula
desc "Language servers for HTML, CSS, JavaScript, and JSON extracted from vscode"
homepage "https://github.com/hrsh7th/vscode-langservers-extracted"
Expand All @@ -20,7 +18,7 @@ class VscodeLangserversExtracted < 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/v/vue-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class VueCli < Formula
desc "Standard Tooling for Vue.js Development"
homepage "https://cli.vuejs.org/"
Expand Down Expand Up @@ -27,7 +25,7 @@ class VueCli < 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
4 changes: 1 addition & 3 deletions Formula/z/zrok.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Zrok < Formula
desc "Geo-scale, next-generation sharing platform built on top of OpenZiti"
homepage "https://zrok.io"
Expand All @@ -23,7 +21,7 @@ class Zrok < Formula

def install
cd buildpath/"ui" do
system "npm", "install", *Language::Node.local_npm_install_args
system "npm", "install", *std_npm_args(prefix: false)
system "npm", "run", "build"
end

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

class Zx < Formula
desc "Tool for writing better scripts"
homepage "https://github.com/google/zx"
Expand All @@ -20,7 +18,7 @@ class Zx < 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