-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
66 lines (66 loc) · 2.72 KB
/
Copy pathcomposer.json
File metadata and controls
66 lines (66 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"name": "webberzone/webberzone-code-block-highlighting",
"description": "Extends the Gutenberg Code block with syntax highlighting powered by Prism.js.",
"version": "1.1.0",
"type": "wordpress-plugin",
"keywords": [
"code block",
"syntax highlighting",
"prism",
"gutenberg",
"code highlighting"
],
"license": "gpl-2.0-or-later",
"homepage": "https://webberzone.com/plugins/webberzone-code-block-highlighting/",
"authors": [
{
"name": "WebberZone",
"role": "Developer"
}
],
"require": {
"php": ">=7.4",
"scrivo/highlight.php": "^9.18"
},
"require-dev": {
"szepeviktor/phpstan-wordpress": "^2",
"phpstan/extension-installer": "^1",
"phpstan/phpstan": "^2",
"php-stubs/wordpress-stubs": "^6",
"wp-coding-standards/wpcs": "^3",
"dealerdirect/phpcodesniffer-composer-installer": "^1",
"yoast/phpunit-polyfills": "^3",
"phpunit/phpunit": "^9 || ^10 || ^11 || ^12"
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"build:vendor": "composer install --no-dev --optimize-autoloader --classmap-authoritative",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M",
"phpstan-baseline": "vendor/bin/phpstan analyse --memory-limit=2048M --generate-baseline",
"phpcs": "vendor/bin/phpcs -p -v -s --standard=phpcs.xml.dist $(find . -name '*.php')",
"phpcbf": "vendor/bin/phpcbf -p -v -s --standard=phpcs.xml.dist $(find . -name '*.php')",
"phpcompat:setup": [
"@php -r \"if (!is_dir('phpcompat-tools')) { mkdir('phpcompat-tools'); }\"",
"@composer config --working-dir=phpcompat-tools allow-plugins.dealerdirect/phpcodesniffer-composer-installer true 2>/dev/null || true",
"@composer require --working-dir=phpcompat-tools --dev --quiet --no-interaction squizlabs/php_codesniffer:^4.0 phpcompatibility/php-compatibility:dev-develop dealerdirect/phpcodesniffer-composer-installer:^1.0 2>/dev/null || true"
],
"phpcompat": [
"@phpcompat:setup",
"phpcompat-tools/vendor/bin/phpcs -p --standard=PHPCompatibility --runtime-set testVersion 7.4-8.5 --extensions=php --ignore=*/vendor/*,*/node_modules/*,*/tests/*,*/phpunit/*,*/phpcompat-tools/* ."
],
"phpcompat:clean": "rm -rf phpcompat-tools",
"test": [
"@phpcs",
"@phpcompat",
"@phpstan"
],
"zip": "./build-zip.sh"
}
}