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-11-29 23:25:29 -08:00
|
|
|
"detail": "Build oh-my-posh for all shells when inside the devcaontainer",
|
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"
|
2021-10-18 04:38:10 -07:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|