-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomposer.json
More file actions
63 lines (63 loc) · 2.01 KB
/
composer.json
File metadata and controls
63 lines (63 loc) · 2.01 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
{
"name": "pronamic/wp-pronamic-forms",
"type": "wordpress-plugin",
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"automattic/jetpack-autoloader": true,
"phpstan/extension-installer": true
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"Pronamic\\PronamicForms\\": "psr-4/"
}
},
"extra": {
"wp-slug": "pronamic-forms"
},
"require": {
"php": "^8.2",
"automattic/jetpack-autoloader": "^5.0",
"pronamic/wp-pay-logos": "^2.3"
},
"require-dev": {
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-strict-rules": "^2.0",
"pronamic/pronamic-cli": "dev-main",
"pronamic/wp-coding-standards": "^2.5",
"rector/rector": "^2.3",
"roots/wordpress-no-content": "^6.9",
"szepeviktor/phpstan-wordpress": "^2.0",
"wp-cli/dist-archive-command": "*",
"wp-cli/wp-cli-bundle": "*",
"wp-pay/core": "^4.21"
},
"scripts": {
"build": [
"rm -rf ./build",
"mkdir ./build",
"mkdir ./build/stage-1",
"mkdir ./build/stage-2",
"rsync --recursive --verbose --exclude-from=.distignore --exclude-from=.gitignore ./ ./build/stage-1/",
"composer install --no-dev --prefer-dist --optimize-autoloader --working-dir=./build/stage-1/",
"npm run build",
"rsync --recursive --verbose ./blocks/ ./build/stage-1/blocks/",
"rsync --recursive --verbose --exclude-from=.distignore ./build/stage-1/ ./build/stage-2/",
"vendor/bin/wp i18n make-pot ./build/stage-2/ --slug=pronamic-forms",
"vendor/bin/wp i18n make-json ./build/stage-2/languages",
"vendor/bin/wp i18n make-mo ./build/stage-2/languages/",
"vendor/bin/wp dist-archive ./build/stage-2/ --plugin-dirname=pronamic-forms"
],
"phpcbf": "XDEBUG_MODE=off vendor/bin/phpcbf",
"phpcs": "vendor/bin/phpcs -s -v",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=-1",
"translate": [
"@build",
"rsync --recursive --delete --verbose ./build/stage-2/languages/ ./languages/",
"vendor/bin/wp i18n update-po ./languages/pronamic-forms.pot"
]
}
}