mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
96 lines
2.5 KiB
JSON
96 lines
2.5 KiB
JSON
{
|
|
"name": "scummvm/web",
|
|
"description": "Scummvm.org main site",
|
|
"type": "project",
|
|
"authors": [
|
|
{
|
|
"name": "Matan Bareket",
|
|
"email": "mataniko@scummvm.org"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=7.0.0",
|
|
"ext-yaml": "*",
|
|
"ext-intl": "*",
|
|
"smarty/smarty": "^3.1",
|
|
"ezyang/htmlpurifier": "^4.10",
|
|
"altorouter/altorouter": "^2.0",
|
|
"piwik/device-detector": "^3.11",
|
|
"spatie/yaml-front-matter": "^2.0",
|
|
"erusev/parsedown": "^1.7",
|
|
"scssphp/scssphp": "^1.2",
|
|
"composer/semver": "^3.2",
|
|
"phpfastcache/phpfastcache": "^8.0",
|
|
"league/csv": "^9.6"
|
|
},
|
|
"require-dev": {
|
|
"phpstan/phpstan": "^0.12.43",
|
|
"squizlabs/php_codesniffer": "^3.4"
|
|
},
|
|
"suggest": {
|
|
"ext-redis": "Needed for redis cache driver"
|
|
},
|
|
"scripts": {
|
|
"build-common": [
|
|
"glue public_html/images/icons/games/ --img=images/ --scss=scss/sprites/ --retina",
|
|
"glue public_html/images/icons/platforms/ --img=images/ --scss=scss/sprites/ --retina",
|
|
"mv scss/sprites/games.scss scss/sprites/_games.scss",
|
|
"mv scss/sprites/platforms.scss scss/sprites/_platforms.scss",
|
|
"mv images/*.png public_html/images",
|
|
"rm -rf images",
|
|
"composer install --no-dev",
|
|
"@scss",
|
|
"@localize",
|
|
"npm install --production"
|
|
],
|
|
"build-win": [
|
|
"if NOT EXIST public_html\\css mkdir public_html\\css",
|
|
"@build-common",
|
|
"if NOT EXIST templates\\compiled mkdir templates\\compiled"
|
|
],
|
|
"build": [
|
|
"mkdir -p public_html/css",
|
|
"@build-common",
|
|
"mkdir -p templates/compiled"
|
|
],
|
|
"start": [
|
|
"Composer\\Config::disableProcessTimeout",
|
|
"php -S localhost:8000 -t ./public_html ./public_html/index.php"
|
|
],
|
|
"develop": [
|
|
"@build",
|
|
"@start"
|
|
],
|
|
"develop-win": [
|
|
"@build-win",
|
|
"@start"
|
|
],
|
|
"lint": [
|
|
"phpcbf --standard=psr2 ./include"
|
|
],
|
|
"flush-cache": [
|
|
"redis-cli -n 8 flushdb"
|
|
],
|
|
"update-data": [
|
|
"php include/DataUtils.php",
|
|
"@flush-cache"
|
|
],
|
|
"scss": [
|
|
"pscss -f compressed ./scss/main_ltr.scss > ./public_html/css/main_ltr.css",
|
|
"pscss -f compressed ./scss/main_rtl.scss > ./public_html/css/main_rtl.css",
|
|
"pscss -f compressed ./scss/pages/_mirrorbrain.scss > ./public_html/css/mirrorbrain.css"
|
|
],
|
|
"localize": [
|
|
"php include/LocalizationUtils.php"
|
|
]
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"ScummVM\\": [
|
|
"include/",
|
|
"public_html/index.php"
|
|
]
|
|
}
|
|
}
|
|
}
|