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",
|
2023-07-02 11:53:50 -07:00
|
|
|
"\"-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=development-$(git --no-pager log -1 --pretty=%h-%s)' -extldflags '-static'\""
|
2021-11-29 23:25:29 -08:00
|
|
|
]
|
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",
|
2023-07-02 11:53:50 -07:00
|
|
|
"\"-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=development-$(git --no-pager log -1 --pretty=%h-%s)' -extldflags '-static'\""
|
2021-11-29 23:25:29 -08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "npm",
|
|
|
|
"script": "start",
|
2022-05-12 22:54:59 -07:00
|
|
|
"path": "website/",
|
2021-11-29 23:25:29 -08:00
|
|
|
"problemMatcher": [],
|
2022-05-12 22:54:59 -07:00
|
|
|
"label": "website: start",
|
2021-11-29 23:25:29 -08:00
|
|
|
"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": {
|
2022-05-12 22:54:59 -07:00
|
|
|
"cwd": "${workspaceFolder}/website/api"
|
2022-01-09 11:24:47 -08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"label": "npm install (functions)",
|
|
|
|
"command": "npm install",
|
|
|
|
"options": {
|
2022-05-12 22:54:59 -07:00
|
|
|
"cwd": "${workspaceFolder}/website/api"
|
2022-01-09 11:24:47 -08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"label": "npm prune (functions)",
|
|
|
|
"command": "npm prune --production",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"options": {
|
2022-05-12 22:54:59 -07:00
|
|
|
"cwd": "${workspaceFolder}/website/api"
|
2022-01-09 11:24:47 -08:00
|
|
|
}
|
2021-10-18 04:38:10 -07:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|