-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
145 lines (145 loc) · 10.9 KB
/
package.json
File metadata and controls
145 lines (145 loc) · 10.9 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "pccd",
"type": "module",
"description": "Paremiologia catalana comparada digital",
"repository": "https://github.com/Softcatala/pccd.git",
"homepage": "https://pccd.dites.cat",
"bugs": "https://github.com/Softcatala/pccd/issues",
"author": "Pere Orga Esteve <pere@orga.cat>",
"license": "AGPL-3.0-or-later",
"private": true,
"engines": {
"node": ">=22.16.0"
},
"scripts": {
"analysis": "concurrently -g --timings 'npm:analysis:*'",
"analysis:phpstan": "./composer.phar run phpstan",
"analysis:psalm": "./composer.phar run psalm",
"build:assets": "node scripts/build-assets.js",
"check:code": "./composer.phar run php-l && concurrently -g --timings npm:lint npm:analysis npm:test:node npm:test:phpunit",
"clean:temp": "rm -rf test-results/ && rm -rf tmp/og/ && find tmp/ -maxdepth 1 -type f \\( -name '*.html' -o -name '*.json' \\) -delete && find . -maxdepth 1 -type f -name '*.html' -delete",
"convert:db": "scripts/install/convert_db.sh",
"decompress:images": "scripts/install/decompress_images.sh",
"delete:images": "find docroot/img/imatges/ docroot/img/obres/ -mindepth 1 -delete",
"export:code": "npm run clean:temp && scripts/export_code.sh",
"export:commonvoice": "scripts/common-voice-export/export.sh",
"export:db": "scripts/export_db.sh",
"fix": "concurrently -g --timings 'npm:fix:*'",
"fix:composer": "./composer.phar run composer-normalize",
"fix:css": "stylelint --fix strict src/css/",
"fix:eslint": "eslint --fix '*.js' 'scripts/**' 'src/**' 'tests/**'",
"fix:markdown": "markdownlint-cli2 --fix",
"fix:php-cs-fixer": "./composer.phar run php-cs-fixer",
"fix:phpcbf": "./composer.phar run phpcbf",
"fix:prettier": "prettier --write .",
"fix:shfmt": "shfmt --apply-ignore -l -w .",
"fix:yaml": "ryl --fix --strict .",
"generate:reports": "concurrently -g --timings 'npm:generate:reports:*'; scripts/report-generation/aggregate_reports.sh",
"generate:reports:fonts_urls": "docker exec pccd-web php scripts/report-generation/generate_report.php fonts_urls > data/reports/test_fonts_url.txt",
"generate:reports:html_escape_and_link_urls": "docker exec pccd-web php scripts/report-generation/generate_report.php html_escape_and_link_urls > data/reports/test_html_escape_and_link_urls.txt",
"generate:reports:image_formats": "node scripts/validate/validate-image-formats.js",
"generate:reports:imatges_duplicades": "node scripts/report-generation/report-duplicate-images.js > data/reports/test_imatges_duplicades.txt",
"generate:reports:imatges_links_part1": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_links 0 1500 > data/reports/test_tmp_imatges_url_enllac_1.txt",
"generate:reports:imatges_links_part2": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_links 1500 3000 > data/reports/test_tmp_imatges_url_enllac_2.txt",
"generate:reports:imatges_links_part3": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_links 3000 3500 > data/reports/test_tmp_imatges_url_enllac_3.txt",
"generate:reports:imatges_links_part4": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_links 3500 > data/reports/test_tmp_imatges_url_enllac_4.txt",
"generate:reports:imatges_no_existents": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_no_existents > data/reports/test_imatges_no_existents.txt",
"generate:reports:imatges_no_referenciades": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_no_referenciades > data/reports/test_imatges_no_referenciades.txt",
"generate:reports:imatges_urls_part1": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_urls 0 500 > data/reports/test_tmp_imatges_url_imatge_1.txt",
"generate:reports:imatges_urls_part2": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_urls 500 1500 > data/reports/test_tmp_imatges_url_imatge_2.txt",
"generate:reports:imatges_urls_part3": "docker exec pccd-web php scripts/report-generation/generate_report.php imatges_urls 1500 > data/reports/test_tmp_imatges_url_imatge_3.txt",
"generate:reports:intl_modismes_molt_diferents": "docker exec pccd-web php scripts/report-generation/generate_report.php intl_modismes_molt_diferents > data/reports/test_intl_modismes_molt_diferents.txt",
"generate:reports:intl_modismes_repetits": "docker exec pccd-web php scripts/report-generation/generate_report.php intl_modismes_repetits > data/reports/test_intl_modismes_repetits.txt",
"generate:reports:intl_modismes_sospitosos": "docker exec pccd-web php scripts/report-generation/generate_report.php intl_modismes_sospitosos > data/reports/test_intl_modismes_sospitosos.txt",
"generate:reports:intl_paremiotipus_repetits": "docker exec pccd-web php scripts/report-generation/generate_report.php intl_paremiotipus_repetits > data/reports/test_intl_paremiotipus_repetits.txt",
"generate:reports:intl_paremiotipus_sospitosos": "docker exec pccd-web php scripts/report-generation/generate_report.php intl_paremiotipus_sospitosos > data/reports/test_intl_paremiotipus_sospitosos.txt",
"generate:reports:languagetool": "scripts/report-generation/languagetool-checker/generate_lt_report.sh",
"generate:reports:llibres_urls": "docker exec pccd-web php scripts/report-generation/generate_report.php llibres_urls > data/reports/test_llibres_url.txt",
"generate:reports:paremiotipus_accents": "docker exec pccd-web php scripts/report-generation/generate_report.php paremiotipus_accents > data/reports/test_paremiotipus_accents.txt",
"generate:reports:paremiotipus_repetits_part1": "docker exec pccd-web php scripts/report-generation/generate_report.php paremiotipus_repetits 0 12000 > data/reports/test_tmp_repetits_1.txt",
"generate:reports:paremiotipus_repetits_part2": "docker exec pccd-web php scripts/report-generation/generate_report.php paremiotipus_repetits 12000 28000 > data/reports/test_tmp_repetits_2.txt",
"generate:reports:paremiotipus_repetits_part3": "docker exec pccd-web php scripts/report-generation/generate_report.php paremiotipus_repetits 28000 50000 > data/reports/test_tmp_repetits_3.txt",
"generate:reports:paremiotipus_repetits_part4": "docker exec pccd-web php scripts/report-generation/generate_report.php paremiotipus_repetits 50000 > data/reports/test_tmp_repetits_4.txt",
"generate:reports:sinonims": "docker exec pccd-web php scripts/report-generation/sinonims-export/app.php > data/reports/sinonims_strict.txt 2> data/reports/sinonims.txt",
"generate:reports:small_images": "node scripts/report-generation/report-small-images.js > data/reports/test_imatges_petites.txt",
"generate:reports:unsupported_image_extensions": "node scripts/report-generation/report-unsupported-image-extensions.js > data/reports/test_imatges_file_extensions.txt",
"import:commonvoice": "scripts/common-voice-export/import.sh",
"postinstall": "./composer.phar install --no-interaction && npx playwright install --with-deps chromium",
"install:db": "scripts/install.sh",
"lint": "concurrently -g --timings 'npm:lint:*'",
"lint:case-sensitive-filenames": "node scripts/lint/check-case-sensitive-filenames.js",
"lint:composer": "./composer.phar validate --strict",
"lint:composer-normalize": "./composer.phar run composer-normalize-lint",
"lint:css": "stylelint src/css/",
"lint:docker": "if command -v hadolint >/dev/null 2>&1; then hadolint .docker/*Dockerfile; else echo 'hadolint not found, skipping docker linting' >&2; exit 0; fi",
"lint:eslint": "eslint '*.js' 'scripts/**' 'src/**' 'tests/**'",
"lint:eslint-redundancy": "node scripts/lint/eslint-check-rule-redundancy.js",
"lint:htmlhint-completeness": "node scripts/lint/htmlhint-check-rule-completeness.js",
"lint:htmlvalidate-redundancy": "node scripts/lint/htmlvalidate-check-rule-redundancy.js",
"lint:ls": "ls-lint",
"lint:markdown": "markdownlint-cli2",
"lint:php-cs-fixer": "./composer.phar run php-cs-fixer-lint",
"lint:phpcs": "./composer.phar run phpcs",
"lint:prettier": "prettier --log-level log --check .",
"lint:shellcheck": "find scripts tests -type f -name '*.sh' ! -name '*.generated.sh' -exec shellcheck {} +",
"lint:shfmt": "shfmt --apply-ignore -l -d .",
"lint:stylelint-redundancy": "node scripts/lint/stylelint-check-rule-redundancy.js",
"lint:xml": "node scripts/lint/xmllint.js",
"lint:yaml": "ryl --strict .",
"optimize:images": "node scripts/install/optimize-images.js && npm run optimize:svg",
"optimize:svg": "svgo --eol lf --multipass -r --folder docroot/img",
"outdated": "concurrently -g --timings 'npm:outdated:*'",
"outdated:composer": "./composer.phar outdated --direct",
"outdated:npm": "npm outdated",
"refresh:test-data": "node tests/playwright/refresh-test-data.js",
"release": "scripts/release.sh",
"sync:external-reports": "(cd ../sinonims-cat/ && git pull --no-edit) && node scripts/report-generation/softcatala-sinonims-export.js > data/reports/softcatala_sinonims.txt; (cd ../dsff-cms/ && git pull --no-edit && npm run ssh:extract-frases-pccd)",
"test": "npm run test:node && npm run test:phpunit && npm run test:e2e && npm run validate:pages && npm run validate:lighthouse && npm run validate:ssl-expiration",
"test:e2e": "playwright test",
"test:node": "node --test tests/node/*.test.js",
"test:phpunit": "./composer.phar run phpunit",
"update": "([ -d node_modules ] || npm install --no-audit --ignore-scripts) && concurrently -g --timings 'npm:update:*'",
"update:composer": "scripts/update_deps.sh composer",
"update:docker": "scripts/update_deps.sh docker",
"update:npm": "scripts/update_deps.sh npm",
"validate:lighthouse": "node scripts/validate/lighthouse-audit.js",
"validate:pages": "node scripts/validate/validate-pages.js",
"validate:sitemap-urls": "node scripts/validate/validate-sitemap-urls.js",
"validate:ssl-expiration": "node scripts/validate/validate-ssl-expiration.js"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@ls-lint/ls-lint": "2.3.1",
"@owenlamont/ryl": "0.6.0",
"@pccd/lt-filter": "7.0.2",
"@playwright/test": "1.59.1",
"chart.js": "4.5.1",
"concurrently": "9.2.1",
"esbuild": "0.28.0",
"eslint": "10.2.0",
"eslint-plugin-n": "17.24.0",
"eslint-plugin-promise": "7.2.1",
"eslint-plugin-regexp": "3.1.0",
"eslint-plugin-unicorn": "64.0.0",
"globals": "17.5.0",
"html-validate": "10.12.1",
"htmlhint": "1.9.2",
"lighthouse": "13.1.0",
"lightningcss": "1.32.0",
"markdownlint-cli2": "0.22.0",
"prettier": "3.8.2",
"prettier-plugin-pkg": "0.22.1",
"sharp": "0.34.5",
"simple-datatables": "10.2.0",
"stylelint": "17.7.0",
"stylelint-config-recess-order": "7.7.0",
"stylelint-config-standard": "40.0.0",
"svgo": "4.0.1",
"xmllint-wasm": "5.2.0"
},
"overrides": {
"eslint-plugin-promise": {
"eslint": "$eslint"
}
}
}