mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
More composer scripts + related changes to CONTRIBUTING.md
This commit is contained in:
parent
9cb6b4e6f3
commit
89fa0c3e67
@ -11,6 +11,7 @@ For smaller contributions just use this workflow:
|
||||
* Fork the project.
|
||||
* Add your features and or bug fixes.
|
||||
* Add tests. Tests are important for us.
|
||||
* Check your changes using `composer check-all`
|
||||
* Send a pull request
|
||||
|
||||
## Using GraphQL PHP from a Git checkout
|
||||
@ -34,10 +35,22 @@ Coding standard of this project is based on [Doctrine CS](https://github.com/doc
|
||||
./vendor/bin/phpcs
|
||||
```
|
||||
|
||||
Auto-fixing:
|
||||
```sh
|
||||
./vendor/bin/phpcbf
|
||||
```
|
||||
|
||||
## Static analysis
|
||||
Based on [PHPStan](https://github.com/phpstan/phpstan)
|
||||
```sh
|
||||
./vendor/bin/phpstan analyse --ansi --memory-limit 256M
|
||||
```
|
||||
|
||||
|
||||
## Running benchmarks
|
||||
|
||||
Benchmarks are run via phpbench:
|
||||
|
||||
```sh
|
||||
./vendor/bin/phpbench run
|
||||
./vendor/bin/phpbench run .
|
||||
```
|
||||
|
@ -44,7 +44,12 @@
|
||||
"psr/http-message": "To use standard GraphQL server"
|
||||
},
|
||||
"scripts": {
|
||||
"api-docs": "php tools/gendocs.php",
|
||||
"bench": "phpbench run .",
|
||||
"test": "phpunit",
|
||||
"lint" : "phpcs",
|
||||
"static-analysis": "phpstan analyse --ansi"
|
||||
"fix-style" : "phpcbf",
|
||||
"static-analysis": "phpstan analyse --ansi --memory-limit 256M",
|
||||
"check-all": "composer lint && composer static-analysis && composer test"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user