Files
wp-plugin-starter-template-…/composer.json
marcusquinn c17b6f1818 Fix remaining CI/CD issues
- Add yoast/phpunit-polyfills ^2.0 to composer.json for WordPress test suite compatibility
- Define WP_TESTS_PHPUNIT_POLYFILLS_PATH in bootstrap.php before loading WP test framework
- Update actions/cache to v4 (deprecated SHA references cause failures)
- Update actions/setup-java to v4
- Update codacy/codacy-analysis-cli-action to v4 tag (SHA ref not found)
- Update github/codeql-action/upload-sarif to v3
2025-11-24 19:38:01 +00:00

63 lines
2.1 KiB
JSON

{
"name": "wpallstars/wp-plugin-starter-template-for-ai-coding",
"description": "A starter template for WordPress plugins with AI development workflows.",
"type": "wordpress-plugin",
"version": "0.1.10",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "WP All Stars",
"email": "support@wpallstars.com"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=7.4"
},
"require-dev": {
"phpunit/phpunit": "^9.5.0",
"yoast/phpunit-polyfills": "^2.0",
"10up/wp_mock": "^1.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpstan/phpstan": "^1.10.0",
"szepeviktor/phpstan-wordpress": "^1.3",
"phpmd/phpmd": "^2.13.0",
"symfony/dependency-injection": "^5.4",
"symfony/config": "^5.4",
"symfony/filesystem": "^5.4",
"symfony/deprecation-contracts": "^2.5",
"doctrine/instantiator": "^1.5.0",
"psr/log": "^1.1"
},
"autoload": {
"psr-4": {
"WPALLSTARS\\PluginStarterTemplate\\": "includes/",
"WP_Plugin_Starter_Template_For_AI_Coding\\": "includes/"
}
},
"autoload-dev": {
"classmap": [
"includes/Admin/class-admin.php",
"tests/phpunit/"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml",
"phpcs:simple": "vendor/bin/phpcs --standard=phpcs-simple.xml",
"phpcbf": "vendor/bin/phpcbf --standard=phpcs.xml",
"phpcbf:simple": "vendor/bin/phpcbf --standard=phpcs-simple.xml",
"phpstan": "vendor/bin/phpstan analyse --level=5 .",
"phpmd": "vendor/bin/phpmd . text phpmd.xml --exclude vendor,node_modules,tests,bin,build,dist",
"test": "vendor/bin/phpunit",
"lint": ["@phpcs", "@phpstan", "@phpmd"],
"fix": ["@phpcbf"]
}
}