-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
composer.json
107 lines (107 loc) · 3.97 KB
/
composer.json
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"name": "magicsunday/webtrees-descendants-chart",
"description": "This modules provides an SVG descendants chart for the [webtrees](https://www.webtrees.net) genealogy application.",
"license": "GPL-3.0-or-later",
"type": "webtrees-module",
"keywords": [
"webtrees",
"module",
"descendant",
"chart"
],
"authors": [
{
"name": "Rico Sonntag",
"email": "mail@ricosonntag.de",
"homepage": "https://ricosonntag.de",
"role": "Developer"
}
],
"config": {
"bin-dir": ".build/bin",
"vendor-dir": ".build/vendor",
"discard-changes": true,
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"magicsunday/webtrees-module-installer-plugin": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"ext-json": "*",
"ext-dom": "*",
"fisharebest/webtrees": "~2.2.0 || dev-main",
"magicsunday/webtrees-module-installer-plugin": "^1.3",
"magicsunday/webtrees-module-base": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.50",
"overtrue/phplint": "^3.4 || ^9.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-deprecation-rules": "^1.1",
"rector/rector": "^1.0"
},
"autoload": {
"psr-4": {
"MagicSunday\\Webtrees\\DescendantsChart\\": "src/"
}
},
"scripts": {
"module:build": [
"### Remove any left over files",
"rm -Rf webtrees-descendants-chart/",
"### Checkout latest version of repository",
"git archive --prefix=webtrees-descendants-chart/ HEAD --format=tar | tar -x",
"### Install required components",
"@composer require magicsunday/webtrees-module-base:^1.0",
"### Copy base module to vendor directory",
"mkdir -p webtrees-descendants-chart/vendor/magicsunday",
"cp -r .build/vendor/magicsunday/webtrees-module-base webtrees-descendants-chart/vendor/magicsunday/webtrees-module-base",
"### Remove all not required files from archive",
"rm -rf webtrees-descendants-chart/.github",
"rm -rf webtrees-descendants-chart/resources/js/modules",
"rm -f webtrees-descendants-chart/.gitattributes",
"rm -f webtrees-descendants-chart/.gitignore",
"rm -f webtrees-descendants-chart/composer.json",
"rm -f webtrees-descendants-chart/package.json",
"rm -f webtrees-descendants-chart/rollup.config.js",
"rm -f webtrees-descendants-chart/phpstan.neon",
"rm -f webtrees-descendants-chart/phpstan-baseline.neon",
"rm -f webtrees-descendants-chart/.php-cs-fixer.dist.php",
"rm -f webtrees-descendants-chart/.phplint.yml",
"rm -f webtrees-descendants-chart/rector.php",
"### Create archive",
"zip --quiet --recurse-paths --move -9 webtrees-descendants-chart.zip webtrees-descendants-chart"
],
"ci:test:php:lint": [
"phplint"
],
"ci:test:php:phpstan": [
"phpstan analyze"
],
"ci:test:php:phpstan:baseline": [
"phpstan analyze --generate-baseline phpstan-baseline.neon --allow-empty-baseline"
],
"ci:test:php:rector": [
"rector process --config rector.php --dry-run"
],
"ci:cgl": [
"php-cs-fixer fix --diff --verbose"
],
"ci:test": [
"@ci:test:php:lint",
"@ci:test:php:phpstan",
"@ci:test:php:rector"
],
"module:check": [
"@ci:test"
]
},
"scripts-descriptions": {
"module:build": "Create a distribution file (webtrees-descendants-chart.zip)",
"module:check": "Run various static analysis tools"
}
}