2021-10-18 04:38:10 -07:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"echoCommand": true,
|
|
|
|
"type": "shell",
|
|
|
|
"tasks": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"command": "go",
|
2021-11-29 23:25:29 -08:00
|
|
|
"label": "build oh-my-posh",
|
|
|
|
"detail": "Build oh-my-posh in the /src folder locally",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceRoot}/src"
|
|
|
|
},
|
2021-10-18 04:38:10 -07:00
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
"problemMatcher": "$go",
|
2021-11-29 23:25:29 -08:00
|
|
|
"args": [
|
|
|
|
"build",
|
|
|
|
"-v",
|
|
|
|
"-ldflags",
|
|
|
|
"\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""
|
|
|
|
]
|
2021-11-20 04:45:51 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"command": "go",
|
2021-11-26 03:02:28 -08:00
|
|
|
"label": "devcontainer: rebuild oh-my-posh",
|
2021-12-06 22:27:28 -08:00
|
|
|
"detail": "Build oh-my-posh for all shells when inside the devcontainer",
|
2021-11-20 04:45:51 -08:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceRoot}/src",
|
|
|
|
"shell": {
|
|
|
|
"executable": "bash",
|
2021-11-29 23:25:29 -08:00
|
|
|
"args": [
|
|
|
|
"-c"
|
|
|
|
]
|
2021-11-20 04:45:51 -08:00
|
|
|
},
|
|
|
|
"statusbar": {
|
|
|
|
"hide": false,
|
2021-11-22 06:25:56 -08:00
|
|
|
"color": "#22C1D6",
|
2021-11-26 03:02:28 -08:00
|
|
|
"label": "$(beaker) devcontainer: rebuild oh-my-posh",
|
2021-11-20 04:45:51 -08:00
|
|
|
"tooltip": "Compiles *oh-my-posh* from this repo while **overwriting** your preinstalled stable release."
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": "$go",
|
2021-11-29 23:25:29 -08:00
|
|
|
"args": [
|
|
|
|
"build",
|
|
|
|
"-v",
|
|
|
|
"-o",
|
|
|
|
"/home/vscode/bin/oh-my-posh",
|
|
|
|
"-ldflags",
|
|
|
|
"\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "npm",
|
|
|
|
"script": "start",
|
|
|
|
"path": "docs/",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"label": "docs: start site",
|
|
|
|
"detail": "cross-env NODE_ENV=development docusaurus start"
|
2022-01-09 11:24:47 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "func",
|
|
|
|
"command": "host start",
|
|
|
|
"problemMatcher": "$func-node-watch",
|
|
|
|
"isBackground": true,
|
|
|
|
"dependsOn": "npm install (functions)",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/docs/api"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"label": "npm install (functions)",
|
|
|
|
"command": "npm install",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/docs/api"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"label": "npm prune (functions)",
|
|
|
|
"command": "npm prune --production",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/docs/api"
|
|
|
|
}
|
2021-10-18 04:38:10 -07:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|