-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
42 lines (42 loc) · 1.74 KB
/
composer.json
File metadata and controls
42 lines (42 loc) · 1.74 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
{
"name": "wolfsoft/botguard-wordpress",
"description": "BotGuard API Connector for WordPress",
"type": "project",
"license": "GPLv2 or later",
"authors": [
{
"name": "Dennis Prochko",
"email": "support@botguard.net"
}
],
"minimum-stability": "dev",
"require": {
"wolfsoft/botguard-php": "dev-master"
},
"scripts": {
"build": [
"@prepdir",
"@copyvendor",
"@addstubs",
"@fixacl",
"@compress",
"@cleanup"
],
"i18n": [
"@makepot",
"@mergepo",
"@buildmo",
"@cleanmo"
],
"prepdir": "mkdir -p botguard/includes/vendor/wolfsoft/botguard-php && cp -a src/* botguard/ && cp LICENSE.txt botguard/",
"copyvendor": "cp -a vendor/composer botguard/includes/vendor/ && cp -a vendor/autoload.php botguard/includes/vendor/ && cp -a vendor/wolfsoft/botguard-php/src botguard/includes/vendor/wolfsoft/botguard-php/",
"addstubs": "echo '<?php // Silence is golden' > /tmp/index.php && find botguard/ -type d -exec cp /tmp/index.php '{}' ';' && rm -f /tmp/index.php",
"fixacl": "find botguard/ -type d -exec chmod ug=rwx,o=rx '{}' ';' && find botguard/ -type f -exec chmod ug=rw,o=r '{}' ';'",
"compress": "zip -r botguard.zip botguard/",
"cleanup": "rm -rf botguard/",
"makepot": "php ../wpi18n/wordpress-develop/tools/i18n/makepot.php wp-plugin src/ src/languages/botguard.pot",
"mergepo": "msgmerge -U src/languages/*.po src/languages/botguard.pot",
"buildmo": "bash -c 'for file in `find src/languages/ -name \"*.po\"` ; do msgfmt -o ${file/.po/.mo} $file ; done'",
"cleanmo": "rm -f src/languages/*.*~"
}
}