oh-my-posh/.vscode/tasks.json

97 lines
2.4 KiB
JSON
Raw Normal View History

{
// 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"
},
"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)'\""
]
},
{
"type": "shell",
"command": "go",
2021-11-26 03:02:28 -08:00
"label": "devcontainer: rebuild oh-my-posh",
"detail": "Build oh-my-posh for all shells when inside the devcontainer",
"options": {
"cwd": "${workspaceRoot}/src",
"shell": {
"executable": "bash",
2021-11-29 23:25:29 -08:00
"args": [
"-c"
]
},
"statusbar": {
"hide": false,
"color": "#22C1D6",
2021-11-26 03:02:28 -08:00
"label": "$(beaker) devcontainer: rebuild oh-my-posh",
"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"
}
}
]
}