-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
composer.json
144 lines (144 loc) · 4.77 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "wp-graphql/wp-graphql-woocommerce",
"description": "WooCommerce bindings for WPGraphQL",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"woocommerce",
"graphql",
"wp-graphql",
"wp-graphql-extension",
"woocommerce-extension",
"api",
"woographql"
],
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Geoff Taylor",
"email": "[email protected]",
"role": "Lead developer"
}
],
"require": {
"php": ">=7.3",
"firebase/php-jwt": "^6.1.0"
},
"require-dev": {
"axepress/wp-graphql-cs": "^2.0.0-beta",
"axepress/wp-graphql-stubs": "^1.27.1",
"brainmaestro/composer-git-hooks": "^2.8.5",
"php-stubs/woocommerce-stubs": "9.1.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpdoc-parser": "^1.22.0",
"phpstan/phpstan": "^1.10",
"szepeviktor/phpstan-wordpress": "^1.3"
},
"config": {
"optimize-autoloader": true,
"process-timeout": 0,
"sort-packages": true,
"allow-plugins": {
"johnpbloch/wordpress-core-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
}
},
"autoload": {
"classmap": [
"vendor-prefixed/"
]
},
"autoload-dev": {
"files": [
"tests/_data/config.php"
],
"psr-4": {
"Tests\\WPGraphQL\\WooCommerce\\": "tests/_support/"
}
},
"scripts": {
"installTestEnv": "bash bin/install-test-env.local.sh",
"runPreCommitCleanup": "bash bin/cleanup.local.sh",
"runWPUnitTest": "vendor/bin/codecept run wpunit",
"dBuild": "env $(sed -e '/^#/d' .env.testing) docker compose build",
"dRunApp": "env $(sed -e '/^#/d' .env.testing) docker compose up testable_app app_db mailhog",
"dRunTestingDb": "if [ ! \"$(docker ps -a | grep testing_db)\" ]; then env $(sed -e '/^#/d' .env.testing) docker compose up -d testing_db; fi",
"dSetMainDb": "docker compose exec testable_app ./setup-database.sh main",
"dSetTestingDb": "docker compose exec testable_app wait-for-it -s -t 300 testing_db:3306 -- ./setup-database.sh testing",
"dRunTest": [
"@dRunTestingDb",
"@dSetTestingDb",
"docker compose exec testable_app wait-for-it -s -t 300 testing_db:3306 -- codecept run $FILTER"
],
"dRunTestStandalone": "env $(sed -e '/^#/d' .env.testing) docker compose run --rm run_tests",
"dDestroy": "docker compose down -v",
"lint": "vendor/bin/phpcs -vp .",
"fix": "vendor/bin/phpcbf -vp .",
"stan": "phpstan analyze --ansi --memory-limit=1G",
"strauss": [
"test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/download/0.14.0/strauss.phar",
"@php bin/strauss.phar",
"composer dump-autoload --optimize"
],
"cghooks": "vendor/bin/cghooks",
"post-install-cmd": [
"@strauss",
"@cghooks add -i"
],
"post-update-cmd": [
"@strauss",
"@cghooks update"
]
},
"support": {
"issues": "https://github.com/wp-graphql/wp-graphql-woocommerce/issues",
"source": "https://github.com/wp-graphql/wp-graphql-woocommerce"
},
"archive": {
"name": "wp-graphql-wooocommerce",
"exclude": [
"/.*",
"/bin",
"/docs",
"/local",
"/plugin-build",
"/phpstan",
"/tests",
"/codeception.dist.yml",
"/codeception.yml",
"/codeclimate.yml",
"/composer.json",
"/composer.lock",
"/docker-compose.yml",
"/Dockerfile",
"/netlify.toml",
"/README.md",
"/phpstan.neon.dist"
]
},
"extra": {
"strauss" : {
"target_directory": "vendor-prefixed",
"namespace_prefix": "WPGraphQL\\WooCommerce\\Vendor\\",
"classmap_prefix": "WP_GraphQL_WooCommerce_Vendor",
"constant_prefix": "WPGRAPHQL_WOOCOMMERCE_VENDOR",
"delete_vendor_files": true,
"include_modified_date": false,
"packages" : [
"firebase/php-jwt"
],
"exclude_from_prefix": {
"file_patterns": []
}
},
"hooks": {
"pre-commit": [
"composer runPreCommitCleanup"
],
"post-merge": [
"composer install"
]
}
}
}