wp-plugin-boilerplate/composer.json

55 lines
1.3 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.0.2",
"eftec/bladeone": "^4.6"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3.0",
"wp-cli/i18n-command": "^2.4.0",
"wp-coding-standards/wpcs": "^2.3.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": 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": []
}
}