wp-plugin-boilerplate/composer.json

60 lines
1.5 KiB
JSON

{
"name": "namespace/plugin-name",
"description": "A boilerplate repo for a WordPress plugin.",
"type": "wordpress-plugin",
"version": "1.0.0",
"license": "GPL-2.0",
"authors": [
{
"name": "Your Name",
"email": "you@email.com"
}
],
"require": {
"php": "~8.1",
"eftec/bladeone": "^4.9"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.26",
"szepeviktor/phpstan-wordpress": "^1.3.0",
"wp-coding-standards/wpcs": "^2.3.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"autoload": {
"psr-4": {
"PluginNamespace\\Admin\\": "admin/",
"PluginNamespace\\": "includes/"
},
"classmap": [
"admin/",
"includes/"
]
},
"autoload-dev": {
"psr-4": {
"PluginNamespaceTests\\": "tests/"
},
"classmap": [
"tests/"
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"lint:wpcs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs -p -v --no-cache --ignore=*/tests/,*/vendor/ --extensions=php .",
"lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor .",
"make-pot": "wp i18n make-pot --include=constants,includes,templates . languages/nmsp-plugin-name.pot",
"post-autoload-dump": [],
"post-root-package-install": []
}
}