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

m*: use std_npm_args #179177

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

class Mailpit < Formula
desc "Web and API based SMTP testing"
homepage "https://mailpit.axllent.org/"
Expand All @@ -21,7 +19,7 @@ class Mailpit < Formula
depends_on "node" => :build

def install
system "npm", "install", *Language::Node.local_npm_install_args
system "npm", "install", *std_npm_args(prefix: false)
system "npm", "run", "build"
ldflags = "-s -w -X github.com/axllent/mailpit/config.Version=v#{version}"
system "go", "build", *std_go_args(ldflags:)
Expand Down
4 changes: 1 addition & 3 deletions Formula/m/mailsy.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Mailsy < Formula
desc "Quickly generate a temporary email address"
homepage "https://github.com/BalliAsghar/Mailsy"
Expand All @@ -20,7 +18,7 @@ class Mailsy < 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/m/mako.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Mako < Formula
desc "Production-grade web bundler based on Rust"
homepage "https://makojs.dev"
Expand All @@ -20,7 +18,7 @@ class Mako < 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/m/markdown-toc.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class MarkdownToc < Formula
desc "Generate a markdown TOC (table of contents) with Remarkable"
homepage "https://github.com/jonschlinkert/markdown-toc"
Expand All @@ -14,7 +12,7 @@ class MarkdownToc < 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/m/markdownlint-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class MarkdownlintCli < Formula
desc "CLI for Node.js style checker and lint tool for Markdown files"
homepage "https://github.com/igorshubovych/markdownlint-cli"
Expand All @@ -20,7 +18,7 @@ class MarkdownlintCli < 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/m/markdownlint-cli2.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class MarkdownlintCli2 < Formula
desc "Fast, flexible, config-based cli for linting Markdown/CommonMark files"
homepage "https://github.com/DavidAnson/markdownlint-cli2"
Expand All @@ -14,7 +12,7 @@ class MarkdownlintCli2 < 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/m/marked.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Marked < Formula
desc "Markdown parser and compiler built for speed"
homepage "https://marked.js.org/"
Expand All @@ -20,7 +18,7 @@ class Marked < 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/m/marp-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class MarpCli < Formula
desc "Easily convert Marp Markdown files into static HTML/CSS, PDF, PPT and images"
homepage "https://github.com/marp-team/marp-cli"
Expand All @@ -20,7 +18,7 @@ class MarpCli < 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/m/mjml.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Mjml < Formula
desc "JavaScript framework that makes responsive-email easy"
homepage "https://mjml.io"
Expand All @@ -20,7 +18,7 @@ class Mjml < 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/m/monika.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Monika < Formula
desc "Synthetic monitoring made easy"
homepage "https://monika.hyperjump.tech"
Expand All @@ -26,7 +24,7 @@ class Monika < 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
Loading