Skip to content

Commit a646f90

Browse files
committed
Add editor config
1 parent f961af3 commit a646f90

4 files changed

Lines changed: 87 additions & 5 deletions

File tree

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Ignores text editor metadata
2-
*.komodoproject
3-
.editorconfig
4-
.vscode
5-
61
# Ignores Mac metadata. You can configure this globally if you use a Mac: http://islegend.com/development/setting-global-gitignore-mac-windows/
72
.DS_Store
83

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"junstyle.php-cs-fixer",
4+
"xdebug.php-debug",
5+
"neilbrayfield.php-docblocker",
6+
"bmewburn.vscode-intelephense-client",
7+
"sanderronde.phpstan-vscode"
8+
]
9+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Listen for XDebug",
9+
"type": "php",
10+
"request": "launch",
11+
"port": 9000,
12+
"log": false,
13+
}
14+
]
15+
}

.vscode/tasks.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "PHPUnit",
8+
"type": "shell",
9+
"options": {
10+
"env": {
11+
"XDEBUG_CONFIG": "idekey=VSCODE"
12+
}
13+
},
14+
"command": "printf '\\33c\\e[3J' && vendor/bin/phpunit",
15+
"problemMatcher": [],
16+
"group": {
17+
"kind": "build",
18+
"isDefault": true
19+
}
20+
},
21+
{
22+
"label": "PHP CS Fixer",
23+
"type": "shell",
24+
"options": {},
25+
"command": "vendor/bin/php-cs-fixer fix",
26+
"problemMatcher": [],
27+
},
28+
{
29+
"label": "Serve",
30+
"type": "shell",
31+
"options": {},
32+
"command": "php bakery serve",
33+
"problemMatcher": [],
34+
},
35+
{
36+
"label": "npm update",
37+
"type": "shell",
38+
"options": {},
39+
"command": "npm update",
40+
"problemMatcher": [],
41+
},
42+
{
43+
"label": "npm run encore dev",
44+
"type": "shell",
45+
"options": {},
46+
"command": "npm run dev",
47+
"problemMatcher": [],
48+
},
49+
{
50+
"label": "npm run encore watch",
51+
"type": "shell",
52+
"options": {},
53+
"command": "npm run dev --watch",
54+
"problemMatcher": [],
55+
},
56+
{
57+
"label": "PHPStan",
58+
"type": "shell",
59+
"command": "vendor/bin/phpstan analyse",
60+
"problemMatcher": []
61+
}
62+
]
63+
}

0 commit comments

Comments
 (0)