e9d6c189bc
CI / Coding Standards (pull_request) Successful in 52s
CI / PHPStan (pull_request) Successful in 1m1s
CI / Tests (PHP 8.1) (pull_request) Successful in 52s
CI / Tests (PHP 8.2) (pull_request) Successful in 48s
CI / Tests (PHP 8.3) (pull_request) Successful in 47s
CI / No Debug Code (pull_request) Successful in 3s
CI / Build Plugin Zip (pull_request) Has been skipped
- bin/build-zip.sh + `composer build`: stage runtime files only, generate a production (no-dev) optimized autoloader, and emit dist/<slug>-<version>.zip with a single top-level plugin folder, ready to upload via wp-admin. Tests, tooling configs, docs, and dev dependencies are excluded; version is read from the plugin header. - CI `build` job: on push to main (post-merge), after lint/static-analysis/ test/no-debug pass, runs the build and uploads the zip via actions/upload-artifact. - Ignore build/ and dist/. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"name": "unsupervised/schedular",
|
|
"description": "WordPress plugin for instructor/student lesson scheduling",
|
|
"type": "wordpress-plugin",
|
|
"license": "GPL-2.0-or-later",
|
|
"require": {
|
|
"php": ">=8.1"
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "^10.5",
|
|
"brain/monkey": "^2.6",
|
|
"mockery/mockery": "^1.6",
|
|
"phpstan/phpstan": "^1.10",
|
|
"szepeviktor/phpstan-wordpress": "^1.3",
|
|
"php-stubs/wordpress-stubs": "^6.0",
|
|
"squizlabs/php_codesniffer": "^3.7",
|
|
"wp-coding-standards/wpcs": "^3.0"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Unsupervised\\Schedular\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Unsupervised\\Schedular\\Tests\\": "tests/"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"test": "phpunit --configuration phpunit.xml",
|
|
"test:coverage": "phpunit --configuration phpunit.xml --coverage-html coverage/",
|
|
"lint": "phpstan analyse src/ --level=6 --configuration phpstan.neon",
|
|
"cs": "phpcs --standard=phpcs.xml.dist",
|
|
"cs:fix": "phpcbf --standard=phpcs.xml.dist",
|
|
"build": "bash bin/build-zip.sh"
|
|
},
|
|
"config": {
|
|
"allow-plugins": {
|
|
"dealerdirect/phpcodesniffer-composer-installer": true
|
|
}
|
|
}
|
|
}
|