This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
tasks.json
executable file
·136 lines (136 loc) · 4.37 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// A task runner that invokes Pester to run all Pester tests under the
// current workspace folder.
// NOTE: This Test task runner requires an updated version of Pester (>=4.0.3)
// in order for the problemMatcher to find failed test information (message, line, file).
// If you don't have that version, you can update Pester from the PowerShell Gallery
// with this command:
//
// PS C:\> Update-Module Pester
//
// If that gives an error like:
// "Module 'Pester' was not installed by using Install-Module, so it cannot be updated."
// then execute:
//
// PS C:\> Install-Module Pester -Scope CurrentUser -Force
//
// NOTE: The Clean, Build and Publish tasks require PSake. PSake can be installed
// from the PowerShell Gallery with this command:
//
// PS C:\> Install-Module PSake -Scope CurrentUser -Force
//
// Available variables which can be used inside of strings:
// ${workspaceFolder} the path of the workspace folder that contains the tasks.json file
// ${workspaceFolderBasename} the name of the workspace folder that contains the tasks.json file without any slashes (/)
// ${file} the current opened file
// ${relativeFile} the current opened file relative to the workspace folder containing the file
// ${fileBasename} the current opened file's basename
// ${fileBasenameNoExtension} the current opened file's basename without the extension
// ${fileDirname} the current opened file's dirname
// ${fileExtname} the current opened file's extension
// ${cwd} the task runner's current working directory on startup
// ${lineNumber} the current selected line number in the active file
{
"version": "2.0.0",
"windows": {
"options": {
"shell": {
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"args": [
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-Command"
]
}
}
},
"linux": {
"options": {
"shell": {
"executable": "/usr/bin/pwsh",
"args": [
"-NoProfile",
"-Command"
]
}
}
},
"osx": {
"options": {
"shell": {
"executable": "/usr/local/bin/pwsh",
"args": [
"-NoProfile",
"-Command"
]
}
}
},
"tasks": [
{
"label": "Clean",
"type": "shell",
"command": "${cwd}/../build.ps1 -Project 'UniFiTooling' -Task 'Clean'",
"presentation": {
"reveal": "never",
"panel": "shared",
"clear": true,
"focus": false
}
},
{
"label": "Build",
"type": "shell",
"command": "${cwd}/../build.ps1 -Project 'UniFiTooling' -Task 'Build'",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "never",
"clear": true,
"focus": false
}
},
{
"label": "Test",
"type": "shell",
"command": "${cwd}/../build.ps1 -Project 'UniFiTooling' -Task 'Build 'Test'",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "silent",
"panel": "shared",
"clear": true,
"focus": false
},
"problemMatcher": [
"$pester"
]
},
{
"label": "Publish",
"type": "shell",
"command": "${cwd}/../build.ps1 -Project 'UniFiTooling' -Task 'Publish'",
"presentation": {
"reveal": "silent",
"panel": "shared",
"clear": true,
"focus": false
}
},
{
"label": "Release",
"type": "shell",
"command": "${cwd}/../build.ps1 -Project 'UniFiTooling' -Task 'Release'",
"presentation": {
"reveal": "silent",
"panel": "shared",
"clear": true
}
}
]
}