Skip to content

Commit

Permalink
chore: clean up VSCode tasks (#987)
Browse files Browse the repository at this point in the history
 - Use npm scripts instead of invoking lerna directly
 - Clean up task names
  • Loading branch information
bajtos committed Feb 14, 2018
1 parent cf4a55c commit baf9928
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,34 @@
{
"label": "Install all dependencies",
"group": "build",
"command": "./node_modules/.bin/lerna",
"command": "npm",
"type": "shell",
"args": [
"run",
"-s",
"bootstrap"
]
],
"problemMatcher": []
},
{
"label": "Remove all dependencies",
"group": "build",
"command": "./node_modules/.bin/lerna",
"command": "npm",
"type": "shell",
"args": [
"clean",
"--yes"
]
"run",
"-s",
"clean:lerna"
],
"problemMatcher": []
},
{
"label": "Build and run and lint",
"label": "Build, test and lint",
"group": "test",
"command": "npm",
"type": "shell",
"args": [
"run",
"test",
"-s"
"test"
],
"problemMatcher": ["$tsc", "$tslint5"]
},
Expand All @@ -41,6 +44,7 @@
"type": "shell",
"args": [
"run",
"-s",
"lint"
],
"problemMatcher": [
Expand Down Expand Up @@ -82,7 +86,7 @@
],
"severity": "error",
"pattern": {
"regexp": "^Error at ([^\/]\\S.*):(\\d+):(\\d+):\\s+(.*)$",
"regexp": "^Error at ([^/]\\S.*):(\\d+):(\\d+):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
Expand All @@ -105,26 +109,28 @@
]
},
{
"label": "Compile TypeScript sources",
"label": "Build project",
"group": "build",
"type": "shell",
"command": "./node_modules/.bin/lerna",
"command": "npm",
"args": [
"run",
"--loglevel=silent",
"-s",
"build"
],
"problemMatcher": "$tsc"
},
{
"label": "Clean all generated files",
"label": "Clean project",
"group": "build",
"type": "shell",
"command": "npm",
"args": [
"run",
"-s",
"clean"
]
],
"problemMatcher": []
}
]
}

0 comments on commit baf9928

Please sign in to comment.