Skip to content

Commit ccbb2c8

Browse files
committed
Adds Homebrew formula
1 parent 3583683 commit ccbb2c8

4 files changed

Lines changed: 33 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ bin/start-watchman export-ignore
1515
box.json.dist export-ignore
1616
CHANGELOG.md export-ignore
1717
example/ export-ignore
18+
Formula/ export-ignore
1819
LICENSE.md export-ignore
1920
llms.txt export-ignore
2021
lpv-logo.png export-ignore

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
77

88
## [Unreleased]
99

10+
### Added
11+
- New `Homebrew` formula and usage documentation. Closes [#45](https://github.com/raphaelstolt/lean-package-validator/issues/45).
12+
1013
## [v5.3.3] - 2026-01-28
1114

1215
### Fixed

Formula/lean-package-validator.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
class LeanPackageValidator < Formula
2+
desc "A CLI for validating if a project has lean releases"
3+
homepage "https://github.com/raphaelstolt/lean-package-validator"
4+
url "https://github.com/raphaelstolt/lean-package-validator/archive/refs/tags/v5.3.0.tar.gz"
5+
sha256 "23b734dca325751555d55fa301e8663662a074af24ef2005a9278a8b8b8d79c1"
6+
license "MIT"
7+
8+
depends_on "php@8.1" => :build
9+
depends_on "composer" => :build
10+
11+
def install
12+
system "composer", "install", "--no-dev", "--optimize-autoloader"
13+
14+
libexec.install Dir["*"]
15+
16+
(bin/"lean-package-validator").write_env_script libexec/"bin/lean-package-validator", PATH: "#{Formula["php@8.1"].opt_bin}:$PATH"
17+
end
18+
19+
test do
20+
system "#{bin}/lean-package-validator", "--version"
21+
end
22+
end

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ wget --quiet https://github.com/raphaelstolt/lean-package-validator/releases/dow
6161
mv lean-package-validator.phar /usr/local/bin/lean-package-validator
6262
```
6363

64+
The lean package validator also can be installed globally via [Homebrew](https://brew.sh/) on macOS systems:
65+
66+
``` bash
67+
brew tap raphaelstolt/lean-package-validator
68+
brew install lean-package-validator
69+
```
70+
6471
## Usage
6572

6673
Run the lean package validator CLI within or against a project/micro-package

0 commit comments

Comments
 (0)