-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
composer.json
107 lines (107 loc) · 3.9 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-pedigree-chart",
"description": "This modules provides an SVG pedigree chart for the [webtrees](https://www.webtrees.net) genealogy application.",
"license": "GPL-3.0-or-later",
"type": "webtrees-module",
"keywords": [
"webtrees",
"module",
"pedigree",
"chart"
],
"authors": [
{
"name": "Rico Sonntag",
"email": "[email protected]",
"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-base": "^1.0",
"magicsunday/webtrees-module-installer-plugin": "^1.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.63.2",
"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\\PedigreeChart\\": "src/"
}
},
"scripts": {
"module:build": [
"### Remove any left over files",
"rm -Rf webtrees-pedigree-chart/",
"### Checkout latest version of repository",
"git archive --prefix=webtrees-pedigree-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-pedigree-chart/vendor/magicsunday",
"cp -r .build/vendor/magicsunday/webtrees-module-base webtrees-pedigree-chart/vendor/magicsunday/webtrees-module-base",
"### Remove all not required files from archive",
"rm -rf webtrees-pedigree-chart/.github",
"rm -rf webtrees-pedigree-chart/resources/js/modules",
"rm -f webtrees-pedigree-chart/.gitattributes",
"rm -f webtrees-pedigree-chart/.gitignore",
"rm -f webtrees-pedigree-chart/composer.json",
"rm -f webtrees-pedigree-chart/package.json",
"rm -f webtrees-pedigree-chart/rollup.config.js",
"rm -f webtrees-pedigree-chart/phpstan.neon",
"rm -f webtrees-pedigree-chart/phpstan-baseline.neon",
"rm -f webtrees-pedigree-chart/.php-cs-fixer.dist.php",
"rm -f webtrees-pedigree-chart/.phplint.yml",
"rm -f webtrees-pedigree-chart/rector.php",
"### Create archive",
"zip --quiet --recurse-paths --move -9 webtrees-pedigree-chart.zip webtrees-pedigree-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-pedigree-chart.zip)",
"module:check": "Run various static analysis tools"
}
}