-
Notifications
You must be signed in to change notification settings - Fork 3
/
composer.json
50 lines (50 loc) · 1.58 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
{
"name": "wmde/fundraising-frontend-content",
"description": "i18n for FundraisingFrontend",
"license": "CC0-1.0",
"require": {
"php": ">=8.0"
},
"require-dev": {
"wmde/fundraising-content-provider": "^6.0",
"seld/jsonlint": "^1.6",
"phpunit/phpunit": "~9.5.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/wmde/fundraising-content-provider",
"no-api": true
}
],
"autoload-dev": {
"psr-4": {
"WMDE\\Fundraising\\Content\\Tests\\": "tests/"
}
},
"scripts": {
"ci": [
"composer validate --no-interaction",
"@lint",
"@test"
],
"test": [
"vendor/bin/phpunit"
],
"lint": [
"@lint-json",
"@lint-templates",
"@lint-wordlists"
],
"lint-json": [
"find i18n/ -type f -name \\*.json | xargs vendor/bin/jsonlint "
],
"lint-templates": [
"find i18n/*/web i18n/*/shared -type f -name '*.twig' | sed -E 's#/web/|/shared/# #' | sed 's|.twig||' | cut -d' ' -f1,2 | xargs -n 2 bash -c './vendor/bin/lint_content --web $0 $1'",
"find i18n/*/mail i18n/*/shared -type f -name '*.twig' | sed -E 's#/mail/|/shared/# #' | sed 's|.twig||' | cut -d' ' -f1,2 | xargs -n 2 bash -c './vendor/bin/lint_content $0 $1'"
],
"lint-wordlists": [
"if grep -oE '\\w+ {2,}\\w+' data/bad_words.txt data/white_words.txt; then echo 'Words must only be separated by 1 space'; false; fi"
]
}
}