forked from TechnicPack/TechnicSolder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
100 lines (93 loc) · 3.28 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
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
{
"name": "stazio/solderplus",
"type": "application",
"description": "Solder Plus API using Laravel Framework",
"keywords": ["technic", "solder", "api"],
"homepage": "https://github.com/stazio/SolderPlus",
"license": "MIT",
"authors": [{
"name": "Staz.IO",
"email": "[email protected]",
"homepage": "http://www.staz.io",
"role": "Maintainer, Developer"
},
{
"name": "The Solder Team",
"homepage": "http://www.technicpack.com",
"role": "Original Developers"
}],
"require": {
"laravel/framework": "4.2.20",
"patricktalmadge/bootstrapper": "~5",
"intervention/image": "~2.4",
"doctrine/dbal": "2.5.*",
"composer/composer": "1.5.1",
"knplabs/github-api": "1.7.1",
"guzzlehttp/guzzle": "~6.3",
"aws/aws-sdk-php": "2.7.*",
"barryvdh/laravel-ide-helper": "1.11"
},
"require-dev": {
"mockery/mockery": "master@dev",
"phpunit/phpunit": "~4.0"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php",
"app/libraries/laravel-config-writer-1.0"
]
},
"scripts": {
"post-install-cmd": [
"php -r \"shell_exec((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'mkdir app\\config && copy app\\config-sample app\\config' : 'cp -r app/config-sample app/config');\"",
"php -r \"copy('app/database-sample/production.sqlite', 'app/database/production.sqlite');\"",
"php -r \"chmod('app/storage', 0775);\"",
"php -r \"chmod('public/resources', 0775);\"",
"php artisan ide-helper:generate",
"php artisan clear-compiled",
"php artisan optimize",
"php artisan key:generate"
],
"post-update-cmd": [
"php artisan ide-helper:generate",
"php artisan clear-compiled",
"php artisan optimize"
],
"tests": [
"if [ -f testing ]; then mkdir testing; fi",
"cp * testing -r || true",
"touch testing/app/database/production.sqlite",
"cp -r testing/app/config-sample testing/app/config",
"cd testing; DB=sqlite APP_ENV=testing php artisan migrate:refresh --force",
"cd testing; DB=sqlite APP_ENV=testing php artisan db:seed --class=\"TestSeeder\" --force",
"cd testing; DB=sqlite APP_ENV=testing vendor/bin/phpunit --verbose"
],
"create-build": [
"mkdir latest-build",
"cp app bootstrap public vendor artisan latest-build -r",
"rm -r latest-build/app/config/ || :",
"rm -r latest-build/app/database/production.sqlite || :",
"touch latest-build/app/database/production.sqlite",
"rm -r latest-build/app/storage/cache/* || :",
"rm -r latest-build/app/storage/github-api-cache/* || :",
"rm -r latest-build/app/storage/logs/* || :",
"rm -r latest-build/app/storage/meta/* || :",
"rm -r latest-build/app/storage/views/* || :*",
"rm -r latest-build/app/tests || :",
"rm -r latest-build/public/mods || :",
"cd latest-build; php artisan optimize",
"OUTPUT=latest-build/app/version.php php build-tools/build-version.php ${BRANCH:-dev} ${VERSION:-indev}",
"if [ -z ${VERSION+x} ]; then gedit latest-build/app/version.php; fi || :",
"cd latest-build; zip latest-build.zip * -r"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}