Skip to content

Commit 3486043

Browse files
committed
Add Docker commands
1 parent 2ed2574 commit 3486043

1 file changed

Lines changed: 60 additions & 11 deletions

File tree

.vscode/tasks.json

Lines changed: 60 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
{
3232
"label": "Frontend - Vite Dev",
3333
"type": "shell",
34-
"command": "npm run vite:dev"
34+
"command": "npm run vite:dev",
35+
"isBackground": true
3536
},
3637
{
3738
"label": "Frontend - Vite Build",
@@ -66,25 +67,23 @@
6667
{
6768
"label": "Frontend - webpack:dev",
6869
"type": "shell",
69-
"options": {},
7070
"command": "npm run webpack:dev",
71-
"problemMatcher": [],
72-
"group": "build"
71+
"problemMatcher": []
7372
},
7473
{
7574
"label": "Frontend - webpack:server (HMR)",
7675
"type": "shell",
77-
"options": {},
7876
"command": "npm run webpack:server",
7977
"problemMatcher": [],
80-
"group": "build"
78+
"isBackground": true
8179
},
8280
{
8381
"label": "Frontend - webpack:watch",
8482
"type": "shell",
8583
"options": {},
8684
"command": "npm run webpack:watch",
87-
"problemMatcher": []
85+
"problemMatcher": [],
86+
"isBackground": true
8887
},
8988
{
9089
"label": "Frontend - webpack:build",
@@ -100,14 +99,15 @@
10099
{
101100
"label": "Bakery - Bake",
102101
"type": "shell",
103-
"options": {},
104102
"command": "php bakery bake",
105-
"problemMatcher": [],
103+
"problemMatcher": []
106104
},
107105
{
108106
"label": "Bakery - Serve",
109107
"type": "shell",
110-
"command": "php bakery serve"
108+
"command": "php bakery serve",
109+
"problemMatcher": [],
110+
"isBackground": true
111111
},
112112
{
113113
"label": "Backend - Composer Update",
@@ -138,5 +138,54 @@
138138
"type": "shell",
139139
"command": "vendor/bin/phpstan analyse"
140140
},
141+
142+
/**
143+
* Docker Tasks
144+
*/
145+
{
146+
"label": "Docker - Build",
147+
"type": "shell",
148+
"command": "docker-compose build --no-cache"
149+
},
150+
{
151+
"label": "Docker - Up",
152+
"type": "shell",
153+
"command": "docker-compose up -d"
154+
},
155+
{
156+
"label": "Docker - Down",
157+
"type": "shell",
158+
"command": "docker-compose down"
159+
},
160+
{
161+
"label": "Docker - Composer Update",
162+
"type": "shell",
163+
"command": "docker-compose exec app composer update"
164+
},
165+
{
166+
"label": "Docker - Bakery Bake",
167+
"type": "shell",
168+
"command": "docker-compose exec app php bakery bake"
169+
},
170+
{
171+
"label": "Docker - PHPUnit",
172+
"type": "shell",
173+
"command": "docker-compose exec app vendor/bin/phpunit"
174+
},
175+
{
176+
"label": "Docker - PHP CS Fixer",
177+
"type": "shell",
178+
"command": "docker-compose exec app vendor/bin/php-cs-fixer fix"
179+
},
180+
{
181+
"label": "Docker - PHPStan",
182+
"type": "shell",
183+
"command": "docker-compose exec app vendor/bin/phpstan analyse"
184+
},
185+
{
186+
"label": "Docker - Shell (App)",
187+
"type": "shell",
188+
"command": "docker-compose exec app bash"
189+
}
141190
]
142-
}
191+
}

0 commit comments

Comments
 (0)