-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcomposer.json
83 lines (83 loc) · 3.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
{
"name": "bear/skeleton",
"type": "project",
"license":"MIT",
"description": "Skeleton application for BEAR.Sunday",
"require": {
"php": "^8.1",
"bear/dotenv": "^1.0",
"bear/package": "^1.14",
"bear/resource": "^1.17",
"bear/sunday": "^1.6",
"ray/aop": "^2.12",
"ray/di": "^2.14"
},
"require-dev": {
"bear/api-doc": "^1.1",
"bear/devtools": "^1.0",
"bamarni/composer-bin-plugin": "^1.4",
"composer/composer": "^2.1",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-latest"
},
"autoload": {
"psr-4": {
"BEAR\\Skeleton\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"BEAR\\Skeleton\\": "tests/"
}
},
"scripts" :{
"pre-update-cmd": "BEAR\\Skeleton\\Composer::install",
"post-update-cmd": ["@composer update", "@composer bin all update --ansi", "./finalyze.sh"],
"post-install-cmd": ["@setup", "@composer bin all install --ansi"],
"setup": "php bin/setup.php",
"compile": "bear.compile 'BEAR\\Skeleton' prod-app ./",
"doc": "./vendor/bin/apidoc",
"test": "./vendor/bin/phpunit",
"coverage": "php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage",
"pcov": "php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml",
"cs": "./vendor/bin/phpcs",
"cs-fix": "./vendor/bin/phpcbf src tests",
"metrics": "./vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception src",
"clean": ["./vendor/bin/phpstan clear-result-cache", "./vendor/bin/psalm --clear-cache", "rm -rf ./var/tmp/*.php"],
"sa": ["./vendor/bin/psalm --show-info=true", "./vendor/bin/phpstan analyse -c phpstan.neon", "./vendor/bin/phpmd src text ./phpmd.xml"],
"tests": ["@cs", "@sa", "@test"],
"build": ["@clean", "@cs", "@sa", "@pcov", "@compile", "@metrics"],
"serve": "COMPOSER_PROCESS_TIMEOUT=0 php -dzend_extension=xdebug.so -S 127.0.0.1:8080 -t public",
"app": "php bin/app.php",
"page": "php bin/page.php"
},
"scripts-descriptions": {
"setup": "Setup the project",
"compile": "Compile scripts for the production",
"doc": "Generate API document",
"test": "Run unit tests",
"tests": "Run tests and quality checks",
"coverage": "Generate test coverage report",
"pcov": "Generate test coverage report (pcov)",
"cs": "Checks the coding standard",
"cs-fix": "Fix the coding standard",
"sa": "Run static analysis",
"metrics": "Build metrics report",
"clean": "Clear cache files",
"serve": "Start built-in server",
"app": "Request app resource",
"page": "Request page resource"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": false
}
}
}