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

n*: use std_npm_args #179179

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

class Nativefier < Formula
desc "Wrap web apps natively"
homepage "https://github.com/nativefier/nativefier"
Expand All @@ -24,7 +22,7 @@ class Nativefier < 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/n/ncc.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Ncc < Formula
desc "Compile a Node.js project into a single file"
homepage "https://github.com/vercel/ncc"
Expand All @@ -21,7 +19,7 @@ class Ncc < 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
6 changes: 2 additions & 4 deletions Formula/n/neonctl.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Neonctl < Formula
desc "Neon CLI tool"
homepage "https://neon.tech/docs/reference/neon-cli"
Expand All @@ -20,11 +18,11 @@ class Neonctl < 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/*"]

%w[neonctl neon].each do |cmd|
generate_completions_from_executable(bin/cmd, "completion")
generate_completions_from_executable(bin/cmd, "completion", base_name: cmd, shells: [:bash, :zsh])
end
end

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

class Netlistsvg < Formula
desc "Draws an SVG schematic from a yosys JSON netlist"
homepage "https://github.com/nturley/netlistsvg"
Expand All @@ -15,7 +13,7 @@ class Netlistsvg < 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/n/newman.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Newman < Formula
desc "Command-line collection runner for Postman"
homepage "https://www.getpostman.com"
Expand All @@ -20,7 +18,7 @@ class Newman < 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/n/node-sass.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class NodeSass < Formula
require "language/node"

desc "JavaScript implementation of a Sass compiler"
homepage "https://github.com/sass/dart-sass"
url "https://registry.npmjs.org/sass/-/sass-1.77.8.tgz"
Expand All @@ -20,7 +18,7 @@ class NodeSass < 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/n/npm-check-updates.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class NpmCheckUpdates < Formula
desc "Find newer versions of dependencies than what your package.json allows"
homepage "https://github.com/raineorshine/npm-check-updates"
Expand All @@ -20,7 +18,7 @@ class NpmCheckUpdates < 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