-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathcomposer.json
More file actions
65 lines (65 loc) · 2.84 KB
/
Copy pathcomposer.json
File metadata and controls
65 lines (65 loc) · 2.84 KB
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
{
"name": "prestashop/ps_apiresources",
"description": "PrestaShop - API Resources",
"homepage": "https://github.com/PrestaShop/ps_apiresources",
"license": "AFL-3.0",
"authors": [
{
"name": "PrestaShop SA",
"email": "contact@prestashop.com"
}
],
"require": {
"php": ">=8.1"
},
"require-dev": {
"prestashop/php-dev-tools": "^4.3",
"czproject/git-php": "^4.2",
"phpunit/phpunit": "^10",
"friendsofphp/php-cs-fixer": "^v3",
"rector/rector": "^2.0",
"doctrine/inflector": "^2.0"
},
"autoload": {
"psr-4": {
"PrestaShop\\Module\\APIResources\\": "src/"
},
"classmap": [
"ps_apiresources.php"
]
},
"autoload-dev": {
"psr-4": {
"PsApiResourcesTest\\": "tests/"
}
},
"config": {
"preferred-install": "dist",
"classmap-authoritative": true,
"optimize-autoloader": true,
"prepend-autoloader": false,
"platform": {
"php": "8.1.0"
}
},
"scripts": {
"clear-test-cache": "PsApiResourcesTest\\EnvironmentBuilder::clearCache",
"create-test-db": [
"Composer\\Config::disableProcessTimeout",
"@composer clear-test-cache",
"@composer setup-local-tests -- --build-db"
],
"header-stamp": "@php vendor/bin/header-stamp --license=vendor/prestashop/header-stamp/assets/afl.txt --exclude=vendor --dry-run",
"header-stamp-fix": "@php vendor/bin/header-stamp --license=vendor/prestashop/header-stamp/assets/afl.txt --exclude=vendor",
"run-module-tests": "@php -d date.timezone=UTC ./vendor/bin/phpunit -c tests/Integration/phpunit-local.xml",
"run-unit-tests": "@php -d date.timezone=UTC ./vendor/bin/phpunit -c tests/Unit/phpunit.xml",
"setup-local-tests": "PsApiResourcesTest\\EnvironmentBuilder::setupLocalTests",
"rector": "vendor/bin/rector process --clear-cache --dry-run",
"rector-fix": "vendor/bin/rector process",
"phpstan": "_PS_ROOT_DIR_=${_PS_ROOT_DIR_:?'Set _PS_ROOT_DIR_ to your PrestaShop installation path'} _PS_BRANCH_=${_PS_BRANCH_:?'Set _PS_BRANCH_ to 9.1.x|develop'} php -d memory_limit=-1 vendor/bin/phpstan analyse --configuration=tests/PHPStan/phpstan-${_PS_BRANCH_}.neon --no-progress",
"phpstan-baseline": "_PS_ROOT_DIR_=${_PS_ROOT_DIR_:?'Set _PS_ROOT_DIR_ to your PrestaShop installation path'} _PS_BRANCH_=${_PS_BRANCH_:?'Set _PS_BRANCH_ to 9.1.x|develop'} php -d memory_limit=-1 vendor/bin/phpstan analyse --configuration=tests/PHPStan/phpstan-${_PS_BRANCH_}.neon --no-progress --generate-baseline=tests/PHPStan/phpstan-${_PS_BRANCH_}-baseline.neon",
"phpstan:docker": "bash tests/phpstan.sh"
},
"type": "prestashop-module",
"author": "PrestaShop"
}