-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
45 lines (45 loc) · 2.05 KB
/
composer.json
File metadata and controls
45 lines (45 loc) · 2.05 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
{
"name": "renderbit/faq-jsonld",
"description": "WordPress plugin to manage FAQ items as CPT and inject FAQ JSON-LD with advanced caching and queueing.",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"version": "2.1.0",
"keywords": ["wordpress", "plugin", "faq", "json-ld", "schema", "cpt"],
"authors": [
{
"name": "Soham Banerjee",
"email": "soham@renderbit.com"
},
{
"name": "Renderbit Technologies",
"email": "renderbit.technologies@gmail.com"
}
],
"require": {
"php": ">=7.2",
"composer/installers": "^1.9 || ^2.0"
},
"autoload": {
"psr-4": {
"FQJ\\": "includes/"
}
},
"extra": {
"installer-name": "faq-jsonld"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
},
"scripts": {
"build-zip": "zip -r faq-jsonld.zip . -x '*.git*' -x '*.gitignore' -x '*.github*' -x '*.codacy*'",
"bump-major": "composer run-script _bump-major-helper && composer update",
"bump-minor": "composer run-script _bump-minor-helper && composer update",
"bump-patch": "composer run-script _bump-patch-helper && composer update",
"_bump-major-helper": "php -r \"$c=json_decode(file_get_contents('composer.json'),true);$v=explode('.',$c['version']);$v[0]++;$v[1]=0;$v[2]=0;$c['version']=implode('.',$v);file_put_contents('composer.json',json_encode($c,JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));\"",
"_bump-minor-helper": "php -r \"$c=json_decode(file_get_contents('composer.json'),true);$v=explode('.',$c['version']);$v[1]++;$v[2]=0;$c['version']=implode('.',$v);file_put_contents('composer.json',json_encode($c,JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));\"",
"_bump-patch-helper": "php -r \"$c=json_decode(file_get_contents('composer.json'),true);$v=explode('.',$c['version']);$v[2]++;$c['version']=implode('.',$v);file_put_contents('composer.json',json_encode($c,JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));\"",
"git-tag": "php -r \"$c=json_decode(file_get_contents('composer.json'),true);echo 'v'.$c['version'];\" | xargs -I {} git tag {}"
}
}