From 74e724282c647710b76b6f27204ba49c2f9d5b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Sun, 20 Sep 2026 17:48:08 +0200 Subject: [PATCH] Normalize repository files --- .gitattributes | 18 ++++++++++++------ .gitignore | 8 ++++---- README.md | 36 ++++++++++++++++++++---------------- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9999bcb..f495aed 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,9 +1,15 @@ * text=auto eol=lf -/.git* export-ignore -/.php-cs-fixer.dist.php export-ignore -/phpstan.neon.dist export-ignore -/phpunit.xml.dist export-ignore -/tests/ export-ignore +/.gitattributes export-ignore +/.github export-ignore +/.gitignore export-ignore +/.php-cs-fixer.dist.php export-ignore +/composer.lock export-ignore +/docs export-ignore +/phpstan.neon.dist export-ignore +/phpunit.xml.dist export-ignore +/tests export-ignore -/tests/** linguist-vendored +/docs/** linguist-documentation +/tests/Fixtures/** -linguist-detectable +/tests/fixtures/** -linguist-detectable diff --git a/.gitignore b/.gitignore index 7af2b02..d6c64c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ -/.phpunit.cache/ /vendor/ +/composer.lock +/.phpunit.cache/ +/.phpunit.result.cache /.php-cs-fixer.cache +/coverage/ /coverage.xml -/composer.lock -/phpstan.neon -/phpunit.xml diff --git a/README.md b/README.md index 89ad502..4dc4195 100644 --- a/README.md +++ b/README.md @@ -138,30 +138,34 @@ try { - [Errors](docs/errors.md): recover from invalid entries, files, and resolutions. - [Complete documentation](docs/index.md): review the package scope and every guide. -## Development +## Contributing -### Running Tests +Contributions of all kinds are welcome. Visit the +[project on GitHub](https://github.com/altophp/importmap) to +[report a bug](https://github.com/altophp/importmap/issues/new), +[suggest a feature](https://github.com/altophp/importmap/issues/new), or +[open a pull request](https://github.com/altophp/importmap/pulls). + +Before submitting code, run: ```bash -composer test -# or -vendor/bin/phpunit +# Runs PHP CS Fixer, PHPStan, and PHPUnit +composer qa ``` -### Static Analysis +Changes to public behavior should include tests and documentation. -```bash -composer sa -# or -vendor/bin/phpstan analyse -``` +## Support -### Code Formatting +ALTO ImportMap is open source and independently maintained by +[Simon André](https://smnandre.dev). If it is useful to your work, you can +support its continued development through +[GitHub Sponsors](https://github.com/sponsors/smnandre). -```bash -vendor/bin/php-cs-fixer fix -``` +Sharing the package or +[starring it on GitHub](https://github.com/altophp/importmap) also helps. ## License -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. +ALTO ImportMap is released by [ALTO PHP](https://altophp.com) under the +[MIT License](LICENSE).