-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
79 lines (79 loc) · 3.09 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
{
"name": "ronei-kunkel/water",
"description": "Water é um sistema que tem por finalidade gerenciar a quantidade de vezes que um usuário bebeu água",
"homepage": "https://github.com/ronei-kunkel/water",
"type": "project",
"license": "MIT",
"authors": [
{
"name": "Ronei Kunkel",
"email": "ronei.kunkel@gmail.com",
"homepage": "https://github.com/ronei-kunkel",
"role": "Developer"
}
],
"config": {
"sort-packages": true,
"allow-plugins": true
},
"require": {
"php": "^8.2",
"devanych/di-container": "^2.1",
"httpsoft/http-basis": "^1.1",
"httpsoft/http-router": "^1.1",
"monolog/monolog": "^2.3|^3.3",
"php-amqplib/php-amqplib": "^3.5",
"predis/predis": "^2.2",
"robmorgan/phinx": "^0.13.4",
"vlucas/phpdotenv": "^5.5"
},
"require-dev": {
"filp/whoops": "^2.15",
"pestphp/pest": "^1.23",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.7",
"symfony/var-dumper": "^5.4|^6.2",
"vimeo/psalm": "^4.9|^5.2"
},
"autoload": {
"psr-4": {
"Water\\": "src/",
"Module\\": "src/Module/",
"Infra\\": "src/Infra/",
"Factory\\": "src/Infra/Factory/",
"Repository\\": "src/Infra/Reposifory/",
"Controller\\": "src/Infra/Http/Controller/",
"Middleware\\": "src/Infra/Http/Middleware/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"static": "docker exec -it $(docker ps -q -f name=water_php82) bash -c \"psalm\"",
"cs-check": "docker exec -it $(docker ps -q -f name=water_php82) bash -c \"phpcs\"",
"cs-fix": "docker exec -it $(docker ps -q -f name=water_php82) bash -c \"phpcbf\"",
"check": [
"@cs-check",
"@static",
"@tests"
],
"bash": "docker exec -it $(docker ps -q -f name=water_php82) bash",
"tests": "docker container exec -it $(docker ps -q -f name=water_php82) sh -c \"php vendor/bin/pest\" -d",
"setup": [
"docker-compose build",
"docker-compose up -d",
"docker exec -it $(docker ps -q -f name=water_php82) bash -c \"composer copy-env\"",
"docker exec -it $(docker ps -q -f name=water_php82) bash -c \"composer update\"",
"docker exec -it $(docker ps -q -f name=water_php82) bash -c \"composer dump-autoload\"",
"docker exec -it $(docker ps -q -f name=water_php82) bash -c \"composer sleep\"",
"composer migrate"
],
"copy-env": "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"sleep": "@php -r \"sleep(2);\"",
"migrate": "docker container exec -it $(docker ps -q -f name=water_php82) sh -c \"php vendor/bin/phinx migrate -e development\"",
"new-migration": "docker container exec -it $(docker ps -q -f name=water_php82) sh -c \"php vendor/bin/phinx create\""
}
}