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

g*: use std_npm_args #179095

Merged
merged 26 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d902c8f
gatsby-cli: use `std_npm_args`
branchvincent Jul 31, 2024
b16833a
generate-json-schema: use `std_npm_args`
branchvincent Jul 31, 2024
f952ebb
git-split-diffs: use `std_npm_args`
branchvincent Jul 31, 2024
5bcf33c
gitlab-ci-local: use `std_npm_args`
branchvincent Jul 31, 2024
d37e79d
gitmoji: use `std_npm_args`
branchvincent Jul 31, 2024
d8bbeb4
gitter-cli: use `std_npm_args`
branchvincent Jul 31, 2024
f926b73
grammarly-languageserver: use `std_npm_args`
branchvincent Jul 31, 2024
47e95b8
graphql-cli: use `std_npm_args`
branchvincent Jul 31, 2024
6aff027
graphqlviz: use `std_npm_args`
branchvincent Jul 31, 2024
6acffe0
graphqurl: use `std_npm_args`
branchvincent Jul 31, 2024
3e8acb0
grunt-cli: use `std_npm_args`
branchvincent Jul 31, 2024
a42dbeb
gtop: use `std_npm_args`
branchvincent Jul 31, 2024
f9fefaf
gulp-cli: use `std_npm_args`
branchvincent Jul 31, 2024
1cdb9c3
gatsby-cli: update 5.13.3 bottle.
BrewTestBot Jul 31, 2024
ed3de45
generate-json-schema: update 2.6.0 bottle.
BrewTestBot Jul 31, 2024
bb31a35
git-split-diffs: update 2.1.0 bottle.
BrewTestBot Jul 31, 2024
2f0966d
gitlab-ci-local: update 4.52.2 bottle.
BrewTestBot Jul 31, 2024
4afee67
gitmoji: update 9.4.0 bottle.
BrewTestBot Jul 31, 2024
55af115
gitter-cli: update 0.8.5 bottle.
BrewTestBot Jul 31, 2024
9418543
grammarly-languageserver: update 0.0.4_1 bottle.
BrewTestBot Jul 31, 2024
4be0e0a
graphql-cli: update 4.1.0 bottle.
BrewTestBot Jul 31, 2024
0b47392
graphqlviz: update 4.0.1 bottle.
BrewTestBot Jul 31, 2024
c61d1c4
graphqurl: update 1.0.3 bottle.
BrewTestBot Jul 31, 2024
71941c5
grunt-cli: update 1.5.0 bottle.
BrewTestBot Jul 31, 2024
ed27c8f
gtop: update 1.1.5 bottle.
BrewTestBot Jul 31, 2024
8ed667b
gulp-cli: update 3.0.0 bottle.
BrewTestBot Jul 31, 2024
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/g/gatsby-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class GatsbyCli < Formula
desc "Gatsby command-line interface"
homepage "https://www.gatsbyjs.org/docs/gatsby-cli/"
Expand All @@ -24,7 +22,7 @@ class GatsbyCli < 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 incompatible pre-built binaries
Expand Down
4 changes: 1 addition & 3 deletions Formula/g/generate-json-schema.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class GenerateJsonSchema < Formula
desc "Generate a JSON Schema from Sample JSON"
homepage "https://github.com/Nijikokun/generate-schema"
Expand All @@ -16,7 +14,7 @@ class GenerateJsonSchema < 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/g/git-split-diffs.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class GitSplitDiffs < Formula
desc "Syntax highlighted side-by-side diffs in your terminal"
homepage "https://github.com/banga/git-split-diffs"
Expand All @@ -20,7 +18,7 @@ class GitSplitDiffs < 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/g/gitlab-ci-local.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class GitlabCiLocal < Formula
desc "Run gitlab pipelines locally as shell executor or docker executor"
homepage "https://github.com/firecow/gitlab-ci-local"
Expand All @@ -21,7 +19,7 @@ class GitlabCiLocal < 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/g/gitmoji.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Gitmoji < Formula
desc "Interactive command-line tool for using emoji in commit messages"
homepage "https://gitmoji.dev"
Expand All @@ -20,7 +18,7 @@ class Gitmoji < 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/g/gitter-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class GitterCli < Formula
desc "Extremely simple Gitter client for terminals"
homepage "https://github.com/RodrigoEspinosa/gitter-cli"
Expand Down Expand Up @@ -27,7 +25,7 @@ class GitterCli < 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/"bin/gitter-cli"
end

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

class GrammarlyLanguageserver < Formula
desc "Language Server for Grammarly"
homepage "https://github.com/znck/grammarly"
Expand All @@ -17,7 +15,7 @@ class GrammarlyLanguageserver < Formula
depends_on "node@16" # try `node` after https://github.com/znck/grammarly/issues/334

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
(bin/"grammarly-languageserver").write <<~EOS
#! /usr/bin/env sh

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

class GraphqlCli < Formula
desc "Command-line tool for common GraphQL development workflows"
homepage "https://github.com/Urigo/graphql-cli"
Expand Down Expand Up @@ -35,7 +33,7 @@ class GraphqlCli < Formula
uses_from_macos "expect" => :test

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

# Avoid references to Homebrew shims
Expand Down
4 changes: 1 addition & 3 deletions Formula/g/graphqlviz.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Graphqlviz < Formula
desc "GraphQL Server schema visualizer"
homepage "https://github.com/sheerun/graphqlviz"
Expand All @@ -14,7 +12,7 @@ class Graphqlviz < 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/g/graphqurl.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Graphqurl < Formula
desc "Curl for GraphQL with autocomplete, subscriptions and GraphiQL"
homepage "https://github.com/hasura/graphqurl"
Expand All @@ -20,7 +18,7 @@ class Graphqurl < 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/g/grunt-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class GruntCli < Formula
desc "JavaScript Task Runner"
homepage "https://gruntjs.com/"
Expand All @@ -20,7 +18,7 @@ class GruntCli < 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 All @@ -43,7 +41,7 @@ def install
};
EOS

system "npm", "install", *Language::Node.local_npm_install_args
system "npm", "install", *std_npm_args(prefix: false)
system bin/"grunt"
assert_predicate testpath/"output.txt", :exist?, "output.txt was not generated"
end
Expand Down
4 changes: 1 addition & 3 deletions Formula/g/gtop.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Gtop < Formula
desc "System monitoring dashboard for terminal"
homepage "https://github.com/aksakalli/gtop"
Expand All @@ -22,7 +20,7 @@ class Gtop < 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/g/gulp-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class GulpCli < Formula
desc "Command-line utility for Gulp"
homepage "https://github.com/gulpjs/gulp-cli"
Expand All @@ -20,13 +18,13 @@ class GulpCli < 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

test do
system "npm", "init", "-y"
system "npm", "install", *Language::Node.local_npm_install_args, "gulp"
system "npm", "install", *std_npm_args(prefix: false), "gulp"

output = shell_output("#{bin}/gulp --version")
assert_match "CLI version: #{version}", output
Expand Down
Loading