-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcomposer-dist.json
28 lines (27 loc) · 1.19 KB
/
composer-dist.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
{
"name": "package/name",
"description": "Description of your web app goes here.",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.1.0",
"rotexsoft/slim-skeleton-mvc-tools": "^5.0.0"
},
"require-dev": {
},
"autoload": {
"classmap": [ "src/", "tests/", "vendor/slim/" ]
},
"scripts": {
"post-install-cmd": [
"@php -r \"file_exists('./public/.htaccess') || copy('./public/.htaccess.dist', './public/.htaccess');\"",
"@php -r \"file_exists('./config/env.php') || copy('./config/env-dist.php', './config/env.php');\"",
"@php -r \"file_exists('./config/app-settings.php') || copy('./config/app-settings-dist.php', './config/app-settings.php');\""
],
"post-update-cmd": [
"@php -r \"file_exists('./public/.htaccess') || copy('./public/.htaccess.dist', './public/.htaccess');\"",
"@php -r \"file_exists('./config/env.php') || copy('./config/env-dist.php', './config/env.php');\"",
"@php -r \"file_exists('./config/app-settings.php') || copy('./config/app-settings-dist.php', './config/app-settings.php');\""
]
}
}