Skip to content

Commit

Permalink
Run npm watch before launching VS Code extension
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnwalraven committed Nov 12, 2018
1 parent c2e5350 commit b9309d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
// List of configurations. Add new configurations or edit existing ones.
"configurations": [
{
"name": "Launch Apollo VSCode",
"name": "Launch VS Code Extension",
"type": "extensionHost",
"request": "launch",
"preLaunchTask": "npm: watch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-apollo"
Expand Down
41 changes: 12 additions & 29 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "TypeScript watch",
"type": "shell",
"command": "./node_modules/.bin/tsc",
"args": [
"--build",
"./tsconfig.json",
"--watch"
],
"isBackground": true,
"problemMatcher": [
"$tsc-watch"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "never",
"panel": "dedicated"
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
},
{
"type": "npm",
"script": "watch",
"problemMatcher": [
"$tsc-watch"
],
"isBackground": true
}
]
}

0 comments on commit b9309d5

Please sign in to comment.