Skip to content

Commit

Permalink
Add editor config
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Apr 28, 2024
1 parent f961af3 commit a646f90
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Ignores text editor metadata
*.komodoproject
.editorconfig
.vscode

# Ignores Mac metadata. You can configure this globally if you use a Mac: http://islegend.com/development/setting-global-gitignore-mac-windows/
.DS_Store

Expand Down
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"junstyle.php-cs-fixer",
"xdebug.php-debug",
"neilbrayfield.php-docblocker",
"bmewburn.vscode-intelephense-client",
"sanderronde.phpstan-vscode"
]
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"log": false,
}
]
}
63 changes: 63 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "PHPUnit",
"type": "shell",
"options": {
"env": {
"XDEBUG_CONFIG": "idekey=VSCODE"
}
},
"command": "printf '\\33c\\e[3J' && vendor/bin/phpunit",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "PHP CS Fixer",
"type": "shell",
"options": {},
"command": "vendor/bin/php-cs-fixer fix",
"problemMatcher": [],
},
{
"label": "Serve",
"type": "shell",
"options": {},
"command": "php bakery serve",
"problemMatcher": [],
},
{
"label": "npm update",
"type": "shell",
"options": {},
"command": "npm update",
"problemMatcher": [],
},
{
"label": "npm run encore dev",
"type": "shell",
"options": {},
"command": "npm run dev",
"problemMatcher": [],
},
{
"label": "npm run encore watch",
"type": "shell",
"options": {},
"command": "npm run dev --watch",
"problemMatcher": [],
},
{
"label": "PHPStan",
"type": "shell",
"command": "vendor/bin/phpstan analyse",
"problemMatcher": []
}
]
}

0 comments on commit a646f90

Please sign in to comment.