-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
54 lines (54 loc) · 2.44 KB
/
composer.json
File metadata and controls
54 lines (54 loc) · 2.44 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
{
"name": "kuria/dev-meta",
"description": "Common development dependencies and scripts for Kuria libraries",
"license": "MIT",
"require": {
"php": ">=7.1",
"ext-mbstring": "*",
"ext-tokenizer": "*",
"kuria/composer-pkg-scripts": "^1.0",
"kuria/phpunit-extras": "^2.0",
"phpunit/phpunit": "^7.3.5",
"phpstan/phpstan-shim": "^0.9.2",
"phpstan/phpstan-phpunit": "^0.9.4",
"squizlabs/php_codesniffer": "^3.3.1"
},
"autoload": {
"psr-4": {
"Kuria\\DevMeta\\": "src"
}
},
"extra": {
"package-scripts": {
"all": ["@cs", "@tests"],
"tests": "@phpunit",
"coverage": "@phpunit:coverage",
"cs": ["@phpcs:check", "@phpstan:src", "@phpstan:tests"],
"cs:fix": ["@phpcs:fix"],
"phpunit": "phpunit --colors=always",
"phpunit:coverage": "phpunit --coverage-html=coverage --coverage-clover=coverage/clover.xml",
"phpstan:src": "phpstan analyze --ansi --configuration={$src.phpstan.config} {$src.phpstan.options} {$src.paths}",
"phpstan:tests": "phpstan analyze --ansi --configuration={$tests.phpstan.config} {$tests.phpstan.options} {$tests.paths}",
"phpcs:check": "phpcs {$phpcs.args}",
"phpcs:fix": "phpcbf {$phpcs.args}"
},
"package-scripts-meta": {
"all": {"aliases": "all", "help": "Run tests and codestyle checks"},
"tests": {"aliases": "tests", "help": "Run tests"},
"coverage": {"aliases": "coverage", "help": "Run tests and generate code coverage report"},
"cs": {"aliases": "cs", "help": "Run codestyle checks"},
"cs:fix": {"aliases": "cs:fix", "help": "Attempt to automatically fix codestyle violations"}
},
"package-scripts-vars": {
"src.paths": ["src"],
"src.phpstan.config": "{$vendor-dir}/kuria/dev-meta/conf/phpstan-src.neon",
"src.phpstan.options": [],
"tests.paths": ["tests"],
"tests.phpstan.config": "{$vendor-dir}/kuria/dev-meta/conf/phpstan-tests.neon",
"tests.phpstan.options": [],
"phpcs.args": ["--standard={$phpcs.standard}", "-p", "-s", "--colors", "{$phpcs.options}", "{$src.paths}", "{$tests.paths}"],
"phpcs.standard": "{$vendor-dir}/kuria/dev-meta/src/CodeSniffer/ruleset.xml",
"phpcs.options": []
}
}
}