-
Notifications
You must be signed in to change notification settings - Fork 221
/
Copy pathcomposer.json
103 lines (103 loc) · 4.2 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "overblog/graphql-bundle",
"type": "symfony-bundle",
"license": "MIT",
"description": "This bundle provides tools to build a GraphQL server in your Symfony App.",
"keywords": ["GraphQL", "Relay"],
"authors": [
{
"name": "Overblog",
"homepage": "http://www.over-blog.com"
}
],
"autoload": {
"psr-4": {
"Overblog\\GraphQLBundle\\": "src/",
"Overblog\\GraphQLGenerator\\": "lib/generator/src/"
}
},
"autoload-dev": {
"psr-4": {
"Overblog\\GraphQLBundle\\Benchmarks\\": "benchmarks/",
"Overblog\\GraphQLBundle\\Tests\\": "tests/",
"Overblog\\GraphQLGenerator\\Tests\\": "lib/generator/tests/"
}
},
"config": {
"bin-dir": "bin",
"sort-packages": true
},
"require": {
"php": ">=7.1",
"ext-json": "*",
"psr/log": "^1.0",
"symfony/config": "^3.4 || ^4.0 || ^5.0",
"symfony/dependency-injection": "^3.4 || ^4.0 || ^5.0",
"symfony/event-dispatcher": "^3.4 || ^4.0 || ^5.0",
"symfony/expression-language": "^3.4 || ^4.0 || ^5.0",
"symfony/framework-bundle": "^3.4 || ^4.0 || ^5.0",
"symfony/options-resolver": "^3.4 || ^4.0 || ^5.0",
"symfony/property-access": "^3.4 || ^4.0 || ^5.0",
"webonyx/graphql-php": "^0.13.5"
},
"replace": {
"overblog/graphql-php-generator": "self.version"
},
"suggest": {
"nelmio/cors-bundle": "For more flexibility when using CORS prefight",
"overblog/graphiql-bundle": "If you want to use graphiQL.",
"react/promise": "To use ReactPHP promise adapter"
},
"require-dev": {
"doctrine/orm": "^2.5",
"phpunit/phpunit": "<8.3",
"react/promise": "^2.5",
"symfony/asset": "^3.4 || ^4.0 || ^5.0",
"symfony/browser-kit": "^3.4 || ^4.0 || ^5.0",
"symfony/console": "^3.4 || ^4.0 || ^5.0",
"symfony/css-selector": "^3.4 || ^4.0 || ^5.0",
"symfony/phpunit-bridge": "^3.4 || ^4.0 || ^5.0",
"symfony/process": "^3.4 || ^4.0 || ^5.0",
"symfony/security-bundle": "^3.4 || ^4.0 || ^5.0",
"symfony/validator": "^3.4 || ^4.0 || ^5.0",
"symfony/yaml": "^3.4 || ^4.0 || ^5.0"
},
"extra": {
"branch-alias": {
"dev-master": "0.12-dev"
}
},
"scripts": {
"test": "bin/phpunit --color=always -v --debug",
"static-analysis": [
"@composer req --ansi --dev --no-update 'phpstan/phpstan:^0.11' 'phpstan/phpstan-phpunit:*'",
"@composer update --ansi",
"phpstan analyse --ansi",
"@composer rem --ansi --dev phpstan/phpstan phpstan/phpstan-phpunit"
],
"bench": [
"test -f phpbench.phar || wget https://github.com/phpbench/phpbench/releases/download/1.0.0-alpha7/phpbench.phar -O phpbench.phar",
"@php phpbench.phar run -l dots --ansi -vvv --report='generator: \"table\", cols: [\"benchmark\", \"subject\", \"params\", \"best\", \"mean\", \"mode\", \"worst\", \"diff\"], break: [\"benchmark\"], sort: {mean: \"asc\"}'"
],
"install-cs": "test -f php-cs-fixer.phar || wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.15.3/php-cs-fixer.phar -O php-cs-fixer.phar",
"fix-cs": [
"@install-cs",
"@php php-cs-fixer.phar fix --diff -v --allow-risky=yes --ansi",
"@php php-cs-fixer.phar fix --config=lib/generator/.php_cs.dist --diff -v --allow-risky=yes --ansi"
],
"check-cs": [
"@install-cs",
"@php php-cs-fixer.phar fix --dry-run --diff -v --allow-risky=yes --ansi",
"@php php-cs-fixer.phar fix --config=lib/generator/.php_cs.dist --dry-run --diff -v --allow-risky=yes --ansi"
],
"code-quality": [
"rm composer.lock",
"@composer install --ansi",
"@static-analysis",
"@bench",
"@check-cs"
],
"docker-clean": "docker image rm $(docker image ls -qf reference=graphql-test)",
"docker": "docker build . -t graphql-test && docker image prune -f >/dev/null && docker run --rm graphql-test"
}
}