-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
165 lines (165 loc) · 10.8 KB
/
package.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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "pccd",
"private": true,
"description": "Paremiologia catalana comparada digital",
"license": "AGPL-3.0-or-later",
"repository": "https://github.com/Softcatala/pccd.git",
"author": "Pere Orga Esteve <[email protected]>",
"homepage": "https://pccd.dites.cat",
"bugs": "https://github.com/Softcatala/pccd/issues",
"engines": {
"node": ">=20"
},
"scripts": {
"analysis": "concurrently -g --timings 'npm:analysis:*'",
"analysis:phpstan": "tools/composer.phar run phpstan",
"analysis:psalm": "tools/composer.phar run psalm",
"analysis:rector": "tools/composer.phar run rector-lint",
"build:assets": "scripts/build_assets.sh && npm run check:size",
"check:certificate": "scripts/check_certificate.sh",
"check:code": "tools/composer.phar run parallel-lint && concurrently -g --timings npm:check:size npm:lint npm:analysis",
"check:sitemap": "scripts/check_sitemap.sh",
"check:size": "size-limit --silent",
"clean:temp": "rm -rf test-results/ && rm -rf tmp/og/ && find tmp/ -maxdepth 1 -type f \\( -name '*.html' -o -name '*.json' ! -name assets-sizes.json \\) -delete && find . -maxdepth 1 -type f -name '*.html' -delete",
"convert:db": "scripts/convert_db.sh",
"decompress:images": "scripts/decompress_images.sh",
"delete:images": "find docroot/img/imatges/ docroot/img/obres/ -mindepth 1 -delete",
"docker:build": "scripts/docker_build.sh",
"docker:build:alpine": "scripts/docker_build.sh --alpine",
"docker:build:alpine-edge": "scripts/docker_build.sh --alpine-edge",
"docker:build:spx": "scripts/docker_build.sh --build-arg profiler=spx",
"docker:build:xhprof": "scripts/docker_build.sh --build-arg profiler=xhprof",
"docker:sh": "docker exec -it pccd-web /bin/sh",
"export:asset-sizes": "size-limit --json | jq '[.[] | {name: .name, size: .size}]' > tmp/assets-sizes.json",
"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:*' && npm run fix-format",
"fix:composer": "tools/composer.phar run composer-normalize",
"fix:eslint": "eslint --fix 'scripts/**/*.js' 'src/**/*.js' 'tests/**/*.js'",
"fix:rector": "tools/composer.phar run rector",
"fix:stylelint": "stylelint --fix src/css/",
"fix-format": "concurrently -g --timings 'npm:fix-format:*'",
"fix-format:php-cs-fixer": "tools/composer.phar run php-cs-fixer",
"fix-format:phpcbf": "tools/composer.phar run phpcbf",
"fix-format:prettier": "prettier --write .",
"fix-format:shfmt": "shfmt -l -w .",
"generate:reports": "concurrently -g --timings 'npm:generate:reports:*'; scripts/aggregate_reports.sh",
"generate:reports:check_images": "scripts/check_images.sh > /dev/null",
"generate:reports:fonts_urls": "docker exec pccd-web php scripts/generate_report.php fonts_urls > tmp/test_fonts_URL.txt",
"generate:reports:html_escape_and_link_urls": "docker exec pccd-web php scripts/generate_report.php html_escape_and_link_urls > tmp/test_html_escape_and_link_urls.txt",
"generate:reports:imatges_duplicades": "node scripts/report-duplicate-images.js > tmp/test_imatges_duplicades.txt",
"generate:reports:imatges_links_part1": "docker exec pccd-web php scripts/generate_report.php imatges_links 0 1500 > tmp/test_tmp_imatges_URL_ENLLAC_1.txt",
"generate:reports:imatges_links_part2": "docker exec pccd-web php scripts/generate_report.php imatges_links 1500 3000 > tmp/test_tmp_imatges_URL_ENLLAC_2.txt",
"generate:reports:imatges_links_part3": "docker exec pccd-web php scripts/generate_report.php imatges_links 3000 3500 > tmp/test_tmp_imatges_URL_ENLLAC_3.txt",
"generate:reports:imatges_links_part4": "docker exec pccd-web php scripts/generate_report.php imatges_links 3500 > tmp/test_tmp_imatges_URL_ENLLAC_4.txt",
"generate:reports:imatges_no_existents": "docker exec pccd-web php scripts/generate_report.php imatges_no_existents > tmp/test_imatges_no_existents.txt",
"generate:reports:imatges_no_referenciades": "docker exec pccd-web php scripts/generate_report.php imatges_no_referenciades > tmp/test_imatges_no_referenciades.txt",
"generate:reports:imatges_urls_part1": "docker exec pccd-web php scripts/generate_report.php imatges_urls 0 500 > tmp/test_tmp_imatges_URL_IMATGE_1.txt",
"generate:reports:imatges_urls_part2": "docker exec pccd-web php scripts/generate_report.php imatges_urls 500 1500 > tmp/test_tmp_imatges_URL_IMATGE_2.txt",
"generate:reports:imatges_urls_part3": "docker exec pccd-web php scripts/generate_report.php imatges_urls 1500 > tmp/test_tmp_imatges_URL_IMATGE_3.txt",
"generate:reports:intl_modismes_molt_diferents": "docker exec pccd-web php scripts/generate_report.php intl_modismes_molt_diferents > tmp/test_intl_modismes_molt_diferents.txt",
"generate:reports:intl_modismes_repetits": "docker exec pccd-web php scripts/generate_report.php intl_modismes_repetits > tmp/test_intl_modismes_repetits.txt",
"generate:reports:intl_modismes_sospitosos": "docker exec pccd-web php scripts/generate_report.php intl_modismes_sospitosos > tmp/test_intl_modismes_sospitosos.txt",
"generate:reports:intl_paremiotipus_repetits": "docker exec pccd-web php scripts/generate_report.php intl_paremiotipus_repetits > tmp/test_intl_paremiotipus_repetits.txt",
"generate:reports:intl_paremiotipus_sospitosos": "docker exec pccd-web php scripts/generate_report.php intl_paremiotipus_sospitosos > tmp/test_intl_paremiotipus_sospitosos.txt",
"generate:reports:languagetool": "scripts/languagetool-checker/generate_lt_report.sh",
"generate:reports:llibres_urls": "docker exec pccd-web php scripts/generate_report.php llibres_urls > tmp/test_llibres_URL.txt",
"generate:reports:paremiotipus_accents": "docker exec pccd-web php scripts/generate_report.php paremiotipus_accents > tmp/test_paremiotipus_accents.txt",
"generate:reports:paremiotipus_repetits_part1": "docker exec pccd-web php scripts/generate_report.php paremiotipus_repetits 0 12000 > tmp/test_tmp_repetits_1.txt",
"generate:reports:paremiotipus_repetits_part2": "docker exec pccd-web php scripts/generate_report.php paremiotipus_repetits 12000 28000 > tmp/test_tmp_repetits_2.txt",
"generate:reports:paremiotipus_repetits_part3": "docker exec pccd-web php scripts/generate_report.php paremiotipus_repetits 28000 > tmp/test_tmp_repetits_3.txt",
"generate:reports:sinonims": "docker exec pccd-web php scripts/sinonims-export/app.php > scripts/sinonims-export/sinonims_strict.txt 2> scripts/sinonims-export/sinonims.txt",
"generate:reports:small_images": "node scripts/report-small-images.js > tmp/test_imatges_petites.txt",
"generate:reports:unsupported_image_extensions": "node scripts/report-unsupported-image-extensions.js > tmp/test_imatges_file_extensions.txt",
"import:commonvoice": "scripts/common-voice-export/import.sh",
"install:db": "scripts/install.sh",
"lint": "concurrently -g --timings 'npm:lint:*'",
"lint:composer": "tools/composer.phar validate --strict",
"lint:composer-normalize": "tools/composer.phar run composer-normalize-lint",
"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 'scripts/**/*.js' 'src/**/*.js' 'tests/**/*.js'",
"lint:ls": "ls-lint",
"lint:markdown": "markdownlint *.md docs/*.md",
"lint:php-cs-fixer": "tools/composer.phar run php-cs-fixer-lint",
"lint:phpcs": "tools/composer.phar run phpcs",
"lint:prettier": "prettier --log-level log --check .",
"lint:shellcheck": "for file in $(find scripts tests -type f -name '*.sh' -not -name '*.generated.sh'); do shellcheck \"$file\" || exit 1; done",
"lint:shfmt": "shfmt -l -d .",
"lint:stylelint": "stylelint src/css/",
"lint:xml": "xmllint --noout *.xml docroot/*.xml .phive/phars.xml",
"lint:yamllint": "yamllint . --strict",
"optimize:images": "node scripts/optimize-images.js",
"optimize:svg": "svgo --eol lf --multipass -r --folder docroot/img",
"outdated": "concurrently -g --timings 'npm:outdated:*'",
"outdated:composer": "tools/composer.phar outdated --direct",
"outdated:phive": "php -d memory_limit=256M tools/phive outdated",
"outdated:npm": "npm outdated",
"postinstall": "yes | php -d memory_limit=256M tools/phive install --force-accept-unsigned && tools/composer.phar install && npx playwright install",
"prepare": "husky",
"prepare:deploy": "npm run export:db && npm run refresh:test-data && npm run test && npm run generate:reports && npm run sync:reports",
"refresh:test-data": "node scripts/refresh-test-data.js",
"sync:reports": "(cd ../sinonims-cat/ && git pull --no-edit) && node scripts/softcatala-sinonims-export.js > src/reports/softcatala_sinonims.txt; (cd ../dsff-cms/ && git pull --no-edit && npm run ssh:extract-frases-pccd)",
"test": "npm run test:bash && npm run test:phpunit && npm run test:e2e && npm run test:html-quality && npm run test:core-vitals; npm run check:certificate",
"test:core-vitals": "scripts/audit_website.sh",
"test:e2e": "playwright test",
"test:bash": "for script in tests/bash/*.sh; do \"$script\" || exit 1; done",
"test:html-quality": "scripts/validate_website.sh",
"test:phpunit": "tools/composer.phar run phpunit",
"update": "concurrently -g --timings 'npm:update:*'",
"update:apc-gui": "scripts/update.sh apc-gui",
"update:docker": "scripts/update.sh docker",
"update:npm": "scripts/update.sh npm",
"update:opcache-gui": "scripts/update.sh opcache-gui",
"update:oxipng": "scripts/update.sh oxipng",
"update:php-deps": "scripts/update.sh phive && scripts/update.sh composer"
},
"keywords": [
"catalan",
"català",
"common voice",
"diccionari",
"dites populars",
"frases fetes",
"idioms",
"locucions",
"online dictionary",
"paremiologia",
"paremiotipus",
"parèmies",
"proverbs",
"proverbis",
"refranys"
],
"devDependencies": {
"@ls-lint/ls-lint": "^2.2.3",
"@playwright/test": "^1.49.1",
"@size-limit/file": "^11.1.6",
"concurrently": "^9.1.0",
"dotenv": "^16.4.7",
"eslint": "^9.16.0",
"eslint-plugin-unicorn": "^56.0.1",
"html-validate": "^8.27.0",
"htmlhint": "^1.1.4",
"husky": "^9.1.7",
"lighthouse": "^12.2.2",
"lightningcss": "^1.28.2",
"lightningcss-cli": "^1.28.2",
"linkinator": "^6.1.2",
"markdownlint-cli": "^0.43.0",
"prettier": "^3.4.2",
"sharp": "^0.33.5",
"size-limit": "^11.1.6",
"stylelint": "^16.11.0",
"stylelint-config-recess-order": "^5.1.1",
"stylelint-config-standard": "^36.0.1",
"svgo": "^3.3.2",
"terser": "^5.37.0"
},
"dependencies": {
"simple-datatables": "^9.2.1"
},
"overrides": {
"picomatch": "^4.0.2"
}
}