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

i,j*: use std_npm_args #179098

Merged
merged 18 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from 9 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/i/iconsur.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Iconsur < Formula
include Language::Python::Virtualenv

Expand Down Expand Up @@ -43,7 +41,7 @@ class Iconsur < Formula
end

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

if MacOS.version >= :monterey
venv = virtualenv_create(libexec/"venv", "python3.12")
Expand Down
4 changes: 1 addition & 3 deletions Formula/i/install-peerdeps.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class InstallPeerdeps < Formula
desc "CLI to automatically install peerDeps"
homepage "https://github.com/nathanhleung/install-peerdeps"
Expand All @@ -14,7 +12,7 @@ class InstallPeerdeps < 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/i/ios-sim.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class IosSim < Formula
desc "Command-line application launcher for the iOS Simulator"
homepage "https://github.com/ios-control/ios-sim"
Expand All @@ -26,7 +24,7 @@ class IosSim < 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/j/jhipster.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Jhipster < Formula
desc "Generate, develop and deploy Spring Boot + Angular/React applications"
homepage "https://www.jhipster.tech/"
Expand All @@ -21,7 +19,7 @@ class Jhipster < Formula
depends_on "openjdk"

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

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

class Jscpd < Formula
desc "Copy/paste detector for programming source code"
homepage "https://github.com/kucherenko/jscpd"
Expand All @@ -20,7 +18,7 @@ class Jscpd < 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/j/jsdoc3.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Jsdoc3 < Formula
desc "API documentation generator for JavaScript"
homepage "https://jsdoc.app/"
Expand All @@ -15,7 +13,7 @@ class Jsdoc3 < 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/j/json2ts.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Json2ts < Formula
desc "Compile JSONSchema to TypeScript type declarations"
homepage "https://github.com/bcherny/json-schema-to-typescript"
Expand All @@ -20,7 +18,7 @@ class Json2ts < 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/j/json5.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Json5 < Formula
desc "JSON enhanced with usability features"
homepage "https://json5.org/"
Expand All @@ -14,7 +12,7 @@ class Json5 < 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/j/jsonlint.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Jsonlint < Formula
desc "JSON parser and validator with a CLI"
homepage "https://github.com/zaach/jsonlint"
Expand All @@ -15,7 +13,7 @@ class Jsonlint < 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