-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
71 lines (71 loc) · 2.5 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
{
"name": "faraweilyas/whitegold",
"description": "The whiteGold mini PHP framework",
"keywords": ["php", "mini", "framework", "library", "project", "whiteGold-framework"],
"license": "MIT",
"homepage": "https://github.com/faraweilyas/whitegold",
"type": "project",
"authors": [
{
"name": "Farawe iLyas",
"email": "[email protected]",
"homepage": "https://faraweilyas.com",
"role": "Software Engineer"
}
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/faraweilyas/whitegold-framework/issues"
},
"autoload": {
"classmap": ["app/"],
"psr-4": {
"App\\": "app"
},
"files": [
"bootstrap/Functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"require": {
"php": ">=7.0.0",
"faraweilyas/whitegold-framework": "^2.6",
"tamtamchik/simple-flash": "^1.2",
"vlucas/phpdotenv": "^2.4"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
},
"scripts": {
"test": "phpunit",
"spinup": "@php -S localhost:8765 -t public/",
"copy-env-config": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"@php -r \"file_exists('config/EnvLoader.php') || copy('config/EnvLoader.php.example', 'config/EnvLoader.php');\""
],
"create-log-files": [
"@php -r \"file_exists('public/logs/actionLog.txt') || fopen('public/logs/actionLog.txt', 'w');\"",
"@php -r \"file_exists('public/logs/errorLog.txt') || fopen('public/logs/errorLog.txt', 'w');\"",
"@php -r \"file_exists('public/logs/DBLog.txt') || fopen('public/logs/DBLog.txt', 'w');\"",
"@php -r \"file_exists('public/logs/mailErrorLog.txt') || fopen('public/logs/mailErrorLog.txt', 'w');\"",
"@php -r \"file_exists('public/logs/mailLog.txt') || fopen('public/logs/mailLog.txt', 'w');\""
],
"post-tasks": ["@copy-env-config", "@create-log-files"],
"post-root-package-install": ["@post-tasks"]
},
"scripts-descriptions": {
"test": "Run all phpunit tests!",
"spinup": "Spin up cli server to run application",
"copy-env-config": "Copy env config files",
"create-log-files": "Create log files"
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}