Skip to content

Commit 6c7eb7d

Browse files
Normalize composer json (#2)
1 parent 986e4bd commit 6c7eb7d

2 files changed

Lines changed: 59 additions & 55 deletions

File tree

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ trim_trailing_whitespace = true
1313

1414
[*.md]
1515
trim_trailing_whitespace = false
16-
17-
[composer.json]
18-
indent_size = 2

composer.json

Lines changed: 59 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,63 @@
11
{
2-
"name": "jsonapiphp/jsonapi",
3-
"description": "Framework agnostic JSON API (jsonapi.org) implementation",
4-
"keywords": [
5-
"jsonapi.org",
6-
"json-api",
7-
"jsonapi",
8-
"neomerx",
9-
"json",
10-
"api"
11-
],
12-
"homepage": "https://github.com/jsonapiphp/jsonapi",
13-
"support": {
14-
"issues": "https://github.com/jsonapiphp/jsonapi/issues"
15-
},
16-
"license": "Apache-2.0",
17-
"authors": [
18-
{
19-
"name": "neomerx",
20-
"email": "info@neomerx.com"
21-
}
22-
],
23-
"require": {
24-
"php": ">=7.1.0"
25-
},
26-
"require-dev": {
27-
"phpunit/phpunit": "^7.0",
28-
"mockery/mockery": "^1.0",
29-
"scrutinizer/ocular": "^1.4",
30-
"squizlabs/php_codesniffer": "^2.9",
31-
"phpmd/phpmd": "^2.6",
32-
"friendsofphp/php-cs-fixer": "^2.14"
33-
},
34-
"minimum-stability": "stable",
35-
"autoload": {
36-
"psr-4": {
37-
"Neomerx\\JsonApi\\": "src/"
2+
"name": "jsonapiphp/jsonapi",
3+
"description": "Framework agnostic JSON API (jsonapi.org) implementation",
4+
"license": "Apache-2.0",
5+
"keywords": [
6+
"jsonapi.org",
7+
"json-api",
8+
"jsonapi",
9+
"neomerx",
10+
"json",
11+
"api"
12+
],
13+
"authors": [
14+
{
15+
"name": "neomerx",
16+
"email": "info@neomerx.com"
17+
}
18+
],
19+
"homepage": "https://github.com/jsonapiphp/jsonapi",
20+
"support": {
21+
"issues": "https://github.com/jsonapiphp/jsonapi/issues"
22+
},
23+
"require": {
24+
"php": ">=7.1.0"
25+
},
26+
"require-dev": {
27+
"friendsofphp/php-cs-fixer": "^2.14",
28+
"mockery/mockery": "^1.0",
29+
"phpmd/phpmd": "^2.6",
30+
"phpunit/phpunit": "^7.0",
31+
"scrutinizer/ocular": "^1.4",
32+
"squizlabs/php_codesniffer": "^2.9"
33+
},
34+
"minimum-stability": "stable",
35+
"autoload": {
36+
"psr-4": {
37+
"Neomerx\\JsonApi\\": "src/"
38+
},
39+
"files": [
40+
"src/I18n/format.php"
41+
]
42+
},
43+
"autoload-dev": {
44+
"psr-4": {
45+
"Neomerx\\Tests\\JsonApi\\": "tests/",
46+
"Neomerx\\Samples\\JsonApi\\": "sample/"
47+
}
3848
},
39-
"files": ["src/I18n/format.php"]
40-
},
41-
"autoload-dev": {
42-
"psr-4": {
43-
"Neomerx\\Tests\\JsonApi\\": "tests/",
44-
"Neomerx\\Samples\\JsonApi\\": "sample/"
49+
"scripts": {
50+
"cs-fixer": "./vendor/bin/php-cs-fixer fix --diff -v --ansi",
51+
"test": [
52+
"@test-unit",
53+
"@test-cs",
54+
"@test-md",
55+
"@test-cs-fixer"
56+
],
57+
"test-cs": "./vendor/bin/phpcs -p -s --standard=PSR2 ./src ./tests",
58+
"test-cs-fixer": "./vendor/bin/php-cs-fixer fix --diff --dry-run -v",
59+
"test-md": "./vendor/bin/phpmd ./src text codesize,controversial,cleancode,design,unusedcode,naming",
60+
"test-unit": "./vendor/phpunit/phpunit/phpunit --coverage-text",
61+
"test-unit-phpdbg": "phpdbg -qrr ./vendor/bin/phpunit --coverage-text"
4562
}
46-
},
47-
"scripts": {
48-
"test": ["@test-unit", "@test-cs", "@test-md", "@test-cs-fixer"],
49-
"test-unit": "./vendor/phpunit/phpunit/phpunit --coverage-text",
50-
"test-unit-phpdbg": "phpdbg -qrr ./vendor/bin/phpunit --coverage-text",
51-
"test-cs": "./vendor/bin/phpcs -p -s --standard=PSR2 ./src ./tests",
52-
"test-md": "./vendor/bin/phpmd ./src text codesize,controversial,cleancode,design,unusedcode,naming",
53-
"test-cs-fixer": "./vendor/bin/php-cs-fixer fix --diff --dry-run -v",
54-
"cs-fixer": "./vendor/bin/php-cs-fixer fix --diff -v --ansi"
55-
}
5663
}

0 commit comments

Comments
 (0)