mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
6d50b38299
`npm ci` is used during producton installation to install the packages from package-lock.json. NPMs default is to install from package.json, updating the package-lock.json in the process. This circumvents any pins in package-lock.json and results in a git tree with an uncommitted change.
92 lines
2.3 KiB
JSON
92 lines
2.3 KiB
JSON
{
|
|
"name": "scummvm/web",
|
|
"description": "Scummvm.org main site",
|
|
"type": "project",
|
|
"authors": [
|
|
{
|
|
"name": "Matan Bareket",
|
|
"email": "mataniko@scummvm.org"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=7.3.0",
|
|
"ext-intl": "*",
|
|
"smarty/smarty": "^3.1",
|
|
"ezyang/htmlpurifier": "^4.10",
|
|
"altorouter/altorouter": "^2.0",
|
|
"matomo/device-detector": "^4.3.0",
|
|
"spatie/yaml-front-matter": "^2.0",
|
|
"erusev/parsedown": "^1.7",
|
|
"phpfastcache/phpfastcache": "^8.0",
|
|
"league/csv": "^9.6",
|
|
"symfony/yaml": "^5.1",
|
|
"predis/predis": "^1.1",
|
|
"guzzlehttp/guzzle": "^7.2",
|
|
"propel/propel": "~2.0@dev"
|
|
},
|
|
"require-dev": {
|
|
"phpstan/phpstan": "^0.12.43",
|
|
"squizlabs/php_codesniffer": "^3.4"
|
|
},
|
|
"suggest": {
|
|
"ext-redis": "Needed for redis cache driver"
|
|
},
|
|
"scripts": {
|
|
"build-common": [
|
|
"@icons",
|
|
"@localize",
|
|
"@database",
|
|
"@update-data"
|
|
],
|
|
"build": [
|
|
"composer install --no-dev",
|
|
"@build-common",
|
|
"npm ci --production"
|
|
],
|
|
"build-dev": [
|
|
"composer install",
|
|
"@build-common",
|
|
"npm install"
|
|
],
|
|
"start": [
|
|
"Composer\\Config::disableProcessTimeout",
|
|
"php -S localhost:8000 -t ./public_html ./public_html/index.php"
|
|
],
|
|
"develop": [
|
|
"@build-dev",
|
|
"@start"
|
|
],
|
|
"lint": [
|
|
"phpcbf --standard=psr2 --ignore=./include/OrmObjects/Base,./include/OrmObjects/Map ./include"
|
|
],
|
|
"update-data": [
|
|
"php include/DataUtils.php"
|
|
],
|
|
"database": [
|
|
"propel sql:build",
|
|
"propel model:build",
|
|
"propel config:convert",
|
|
"propel sql:insert",
|
|
"composer dumpautoload"
|
|
],
|
|
"localize": [
|
|
"php include/LocalizationUtils.php"
|
|
],
|
|
"icons": [
|
|
"glue public_html/images/icons/games/ --img=public_html/images/ --scss=scss/sprites/ --retina",
|
|
"glue public_html/images/icons/platforms/ --img=public_html/images/ --scss=scss/sprites/ --retina",
|
|
"sed -i'' -e 's#../../public_html#../../#g' ./scss/sprites/*",
|
|
"mv scss/sprites/games.scss scss/sprites/_games.scss",
|
|
"mv scss/sprites/platforms.scss scss/sprites/_platforms.scss"
|
|
]
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"ScummVM\\": [
|
|
"include/",
|
|
"public_html/index.php"
|
|
]
|
|
}
|
|
}
|
|
}
|