forked from scummvm/scummvm-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
74 lines (74 loc) · 1.93 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "scummvm/web",
"description": "Scummvm.org main site",
"type": "project",
"authors": [
{
"name": "Matan Bareket",
"email": "[email protected]"
}
],
"require": {
"leafo/scssphp": "^0.7.6",
"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"
},
"scripts": {
"post-install-cmd": [
"pscss -f compressed ./scss/main.scss > ./public_html/css/main.css",
"pscss -f compressed ./scss/pages/_mirrorbrain.scss > ./public_html/css/mirrorbrain.css",
"php include/I18N.php"
],
"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",
"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"
],
"develop": [
"@build",
"@start"
],
"develop-win": [
"@build-win",
"@start"
],
"lint": [
"phpcbf ./include"
]
},
"require-dev": {
"phpstan/phpstan": "^0.11.1",
"squizlabs/php_codesniffer": "^3.4"
},
"autoload": {
"psr-4": {
"ScummVM\\": [
"include/",
"public_html/index.php"
]
}
}
}