Skip to content

Commit b5ecce9

Browse files
committed
chore(composer): use HC 6 & addon packages, bump package
* add linting tools * phpcs * phpstan * psalm * remove Hybrid Core v5 * add Hybrid Core v6 * add Hybrid Core addons * hybrid-attr * hybrid-lang * hybrid-media-meta * hybrid-pagination * hybrid-template * hybrid-template-hierarchy * hybrid-template-manager * hybrid-theme * hybrid-tools * hybrid-view chore(composer): use HC 6 & addon packages, bump package
1 parent 4c734e9 commit b5ecce9

File tree

4 files changed

+3717
-323
lines changed

4 files changed

+3717
-323
lines changed

composer.json

+56-19
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,66 @@
11
{
2-
"name" : "justintadlock/mythic",
3-
"type" : "wordpress-theme",
4-
"description" : "Mythic is a next-generation starter theme designed to help theme authors write elegant, intelligent, and modern code.",
5-
"keywords" : ["wordpress"],
6-
"homepage" : "https://themehybrid.com/themes/mythic",
7-
"license" : "GPL-2.0-or-later",
8-
"authors" : [
2+
"name": "justintadlock/mythic",
3+
"description": "Mythic is a next-generation starter theme designed to help theme authors write elegant, intelligent, and modern code.",
4+
"license": "GPL-2.0-or-later",
5+
"type": "wordpress-theme",
6+
"keywords": [
7+
"wordpress"
8+
],
9+
"authors": [
910
{
10-
"name" : "Justin Tadlock",
11-
"email" : "justintadlock@gmail.com",
11+
"name": "Justin Tadlock",
12+
"email": "justintadlock@gmail.com",
1213
"homepage": "https://themehybrid.com"
1314
}
1415
],
15-
"autoload" : {
16-
"psr-4" : {
17-
"Mythic\\" : "app/"
18-
}
19-
},
16+
"homepage": "https://themehybrid.com/themes/mythic",
2017
"require": {
21-
"php" : ">=5.6",
22-
"composer/installers" : "~1.0",
23-
"justintadlock/hybrid-core" : "^5.0.0"
18+
"php": ">=5.6",
19+
"themehybrid/hybrid-attr": "^1.0",
20+
"themehybrid/hybrid-core": "^6.0",
21+
"themehybrid/hybrid-lang": "^1.0",
22+
"themehybrid/hybrid-media-meta": "^1.0",
23+
"themehybrid/hybrid-pagination": "^1.0",
24+
"themehybrid/hybrid-template": "^1.0",
25+
"themehybrid/hybrid-template-hierarchy": "^1.0",
26+
"themehybrid/hybrid-template-manager": "^1.0",
27+
"themehybrid/hybrid-theme": "^1.0",
28+
"themehybrid/hybrid-tools": "^1.0",
29+
"themehybrid/hybrid-view": "^1.0"
2430
},
2531
"require-dev": {
26-
"wptrt/wpthemereview": "*",
27-
"dealerdirect/phpcodesniffer-composer-installer": "0.4.4"
32+
"humanmade/psalm-plugin-wordpress": "^2.1",
33+
"php-parallel-lint/php-parallel-lint": "^1.3",
34+
"sirbrillig/phpcs-variable-analysis": "^2.11",
35+
"slevomat/coding-standard": "^8.12",
36+
"szepeviktor/phpstan-wordpress": "^1.3",
37+
"tideways/ext-tideways-stubs": "^5.5",
38+
"vimeo/psalm": "^4.0",
39+
"wptrt/wpthemereview": "^0.2.1"
40+
},
41+
"autoload": {
42+
"psr-4": {
43+
"Mythic\\": "app/"
44+
}
45+
},
46+
"config": {
47+
"allow-plugins": {
48+
"composer/installers": true,
49+
"composer/package-versions-deprecated": true,
50+
"dealerdirect/phpcodesniffer-composer-installer": true
51+
}
52+
},
53+
"scripts": {
54+
"analyze": [
55+
"@phpstan:analyze",
56+
"@psalm:analyze",
57+
"@phpcs:analyze"
58+
],
59+
"lint": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor ./app",
60+
"phpcs:analyze": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
61+
"phpcs:fix": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf",
62+
"phpstan:analyze": "@php ./vendor/bin/phpstan analyze",
63+
"psalm:analyze": "@php ./vendor/bin/psalm",
64+
"post-install-cmd": "@php ./vendor/bin/phpcs --config-set default_standard Mythic"
2865
}
2966
}

0 commit comments

Comments
 (0)