obsidian-plugin-config
Version:
Global CLI injection tool for Obsidian plugins
78 lines (77 loc) • 2.31 kB
JSON
{
"version": "2.0.0",
"tasks": [
{
"label": "Lint",
"type": "shell",
"command": "yarn lint",
"group": "test",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "Lint: Fix",
"type": "shell",
"command": "yarn lint:fix",
"group": "test",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "Prettier: Check",
"type": "shell",
"command": "yarn prettier",
"group": "test",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": []
},
{
"label": "Prettier: Fix",
"type": "shell",
"command": "yarn prettier:fix",
"group": "test",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": []
},
{
"label": "ACP (add, commit, push)",
"type": "shell",
"command": "yarn acp",
"group": "build",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": []
},
{
"label": "Check Global CLI Version",
"type": "shell",
"command": "npm list -g obsidian-plugin-config --depth=0",
"group": "build",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": []
},
{
"label": "NPM Publish",
"type": "shell",
"command": "yarn npm-publish",
"group": { "kind": "build", "isDefault": true },
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": []
},
{
"label": "Install/Update obsidian-inject",
"type": "shell",
"command": "npm list -g obsidian-plugin-config --depth=0 && npm install -g obsidian-plugin-config@latest --force --engine-strict=false && npm list -g obsidian-plugin-config --depth=0",
"group": "build",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": []
},
{
"label": "Cleanup: Lint + Prettier",
"dependsOrder": "sequence",
"dependsOn": ["Lint: Fix", "Prettier: Fix"],
"group": "build",
"presentation": { "reveal": "always", "panel": "shared" },
"problemMatcher": []
}
]
}