stolt/lean-package-validator
CLI tool to validate a project or micro-package for “leanness” by ensuring common repo artifacts are excluded from release archives. Also creates, updates, and reformats .gitattributes export-ignore entries for lean distribution packages.
.gitattributes in pipelines, ensuring compliance with lean package standards before releases..gitattributes management, given its presets, extensibility, and integration with Composer/GitHub Actions..gitattributes formatting (e.g., sorting, alignment) and providing CLI tools for creation/updates..env, composer.lock) in releases by enforcing strict validation.Adopt if:
.gitattributes in CI/CD (e.g., GitHub Actions, GitLab CI)..gitattributes across repositories (e.g., monorepos, open-source projects).Look elsewhere if:
.gitattributes (e.g., SVN, Mercurial).git update-index or custom scripts)..gitattributes.For Executives: "This package automates the enforcement of ‘lean’ package standards—reducing release artifact sizes by excluding dev files (tests, configs) from distributions. It integrates seamlessly with Composer and CI/CD, cutting release times and storage costs. For example, a PHP library could shrink its release size by 30% overnight, improving deployment speed and reducing cloud storage bills. It’s a low-code solution to a high-impact problem, with minimal maintenance overhead."
For Engineers: *"The Lean Package Validator (LPV) is a CLI tool that:
.gitattributes to ensure only essential files (e.g., src/, composer.json) are included in releases..gitattributes with presets for PHP, Python, JS, etc.composer validate-gitattributes) and GitHub Actions for zero-effort compliance.composer.json scripts to block bloated releases. Example:*composer require --dev stolt/lean-package-validator
# Then run:
composer validate-gitattributes
It’s like prettier for .gitattributes—consistent, enforceable, and dev-friendly."
How can I help you explore Laravel packages today?