mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
chore: docs run task
This commit is contained in:
parent
372fbc6f03
commit
89e2c28192
36
.vscode/tasks.json
vendored
36
.vscode/tasks.json
vendored
|
@ -9,24 +9,35 @@
|
|||
{
|
||||
"type": "shell",
|
||||
"command": "go",
|
||||
"label": "build omp",
|
||||
"options": { "cwd": "${workspaceRoot}/src" },
|
||||
"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",
|
||||
"args": ["build", "-v", "-ldflags", "\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""]
|
||||
"args": [
|
||||
"build",
|
||||
"-v",
|
||||
"-ldflags",
|
||||
"\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "go",
|
||||
"label": "devcontainer: rebuild oh-my-posh",
|
||||
"detail": "Build oh-my-posh for all shells when inside the devcaontainer",
|
||||
"options": {
|
||||
"cwd": "${workspaceRoot}/src",
|
||||
"shell": {
|
||||
"executable": "bash",
|
||||
"args": ["-c"]
|
||||
"args": [
|
||||
"-c"
|
||||
]
|
||||
},
|
||||
"statusbar": {
|
||||
"hide": false,
|
||||
|
@ -37,7 +48,22 @@
|
|||
},
|
||||
"group": "build",
|
||||
"problemMatcher": "$go",
|
||||
"args": ["build", "-v", "-o", "/home/vscode/bin/oh-my-posh", "-ldflags", "\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""]
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue