-
Notifications
You must be signed in to change notification settings - Fork 5
/
composer.json
97 lines (97 loc) · 4.13 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
{
"name": "chubbyphp/chubbyphp-framework-skeleton",
"description": "A minimal skeleton for chubbyphp-framework",
"keywords": [
"chubbyphp",
"framework",
"skeleton"
],
"license": "MIT",
"authors": [
{
"name": "Dominik Zogg",
"email": "dominik.zogg@gmail.com"
}
],
"require": {
"php": "^8.1",
"chubbyphp/chubbyphp-clean-directories": "^1.3.1",
"chubbyphp/chubbyphp-cors": "^1.5",
"chubbyphp/chubbyphp-decode-encode": "^1.1",
"chubbyphp/chubbyphp-framework": "^5.1.1",
"chubbyphp/chubbyphp-framework-router-fastroute": "^2.1",
"chubbyphp/chubbyphp-http-exception": "^1.1",
"chubbyphp/chubbyphp-laminas-config": "^1.4",
"chubbyphp/chubbyphp-laminas-config-doctrine": "^2.1",
"chubbyphp/chubbyphp-laminas-config-factory": "^1.3",
"chubbyphp/chubbyphp-negotiation": "^2.1",
"chubbyphp/chubbyphp-parsing": "^1.1.1",
"doctrine/orm": "^2.17.2",
"monolog/monolog": "^3.5",
"ramsey/uuid": "^4.7.5",
"slim/psr7": "^1.6.1",
"symfony/console": "^6.4.2"
},
"require-dev": {
"chubbyphp/chubbyphp-dev-helper": "dev-master",
"chubbyphp/chubbyphp-mock": "^1.7",
"infection/infection": "^0.27.9",
"php-coveralls/php-coveralls": "^2.7",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.50",
"phpunit/phpunit": "^10.5.5"
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true,
"phpstan/extension-installer": true
}
},
"scripts": {
"clean-directories": "bin/console clean-directories cache log",
"database:create": "bin/console dbal:database:create --if-not-exists",
"database:drop": "bin/console dbal:database:drop --if-exists --force",
"database:schema:update": "bin/console orm:schema-tool:update --complete --force --dump-sql",
"database:schema:validate": "bin/console orm:validate-schema",
"fix:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
"setup:dev": [
"@database:drop --env=dev",
"@database:create --env=dev",
"@database:schema:update --env=dev",
"@database:schema:validate --env=dev",
"@clean-directories --env=dev"
],
"setup:phpunit": [
"@database:drop --env=phpunit",
"@database:create --env=phpunit",
"@database:schema:update --env=phpunit",
"@database:schema:validate --env=phpunit",
"@clean-directories --env=phpunit"
],
"test": [
"@test:lint",
"@test:unit",
"@test:infection",
"@test:integration",
"@test:static-analysis",
"@test:cs"
],
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=99 --verbose --coverage=build/phpunit",
"test:integration": "vendor/bin/phpunit --configuration phpunit.integration.xml --cache-result-file=build/phpunit/result.integration.cache",
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=8 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
"test:unit": "vendor/bin/phpunit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-result-file=build/phpunit/result.cache"
}
}