Files
github-local-actions/package.json
Sanjula Ganepola 49e934e297 Refactor to use workspace folders
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
2024-10-19 20:20:48 -04:00

532 lines
16 KiB
JSON

{
"name": "github-local-actions",
"displayName": "GitHub Local Actions",
"description": "Run your GitHub Actions locally!",
"icon": "icon.png",
"author": {
"name": "Sanjula Ganepola",
"url": "https://github.com/sanjulaganepola"
},
"publisher": "SanjulaGanepola",
"license": "Apache-2.0",
"version": "1.0.0",
"repository": {
"url": "https://github.com/SanjulaGanepola/github-local-actions"
},
"homepage": "https://github.com/SanjulaGanepola/github-local-actions/blob/main/README.md",
"bugs": {
"url": "https://github.com/SanjulaGanepola/github-local-actions/issues"
},
"keywords": [
"GitHub Actions"
],
"categories": [
"Other"
],
"engines": {
"vscode": "^1.93.0"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "github-local-actions-container",
"title": "GitHub Local Actions",
"icon": "$(robot)"
}
]
},
"views": {
"github-local-actions-container": [
{
"id": "components",
"name": "Components",
"icon": "$(telescope)"
},
{
"id": "workflows",
"name": "Workflows",
"icon": "$(layers)"
},
{
"id": "history",
"name": "History",
"icon": "$(book)"
},
{
"id": "settings",
"name": "Settings",
"icon": "$(gear)"
}
]
},
"viewsWelcome": [
{
"view": "components",
"contents": "Loading components...",
"when": "!githubLocalActions:noComponents && workspaceFolderCount > 0"
},
{
"view": "components",
"contents": "No workspace folder opened",
"when": "workspaceFolderCount == 0"
},
{
"view": "components",
"contents": "No components found.",
"when": "githubLocalActions:noComponents && workspaceFolderCount > 0"
},
{
"view": "workflows",
"contents": "Loading components...",
"when": "!githubLocalActions:noWorkflows && workspaceFolderCount > 0"
},
{
"view": "workflows",
"contents": "No workspace folder opened",
"when": "workspaceFolderCount == 0"
},
{
"view": "workflows",
"contents": "No workflows found.",
"when": "githubLocalActions:noWorkflows && workspaceFolderCount > 0"
},
{
"view": "history",
"contents": "Loading history...",
"when": "!githubLocalActions:noHistory && workspaceFolderCount > 0"
},
{
"view": "history",
"contents": "No workspace folder opened",
"when": "workspaceFolderCount == 0"
},
{
"view": "history",
"contents": "No history found.",
"when": "githubLocalActions:noHistory && workspaceFolderCount > 0"
},
{
"view": "settings",
"contents": "Loading settings...",
"when": "!githubLocalActions:noSettings && workspaceFolderCount > 0"
},
{
"view": "settings",
"contents": "No workspace folder opened",
"when": "workspaceFolderCount == 0"
},
{
"view": "settings",
"contents": "No workflows found.",
"when": "githubLocalActions:noSettings && workspaceFolderCount > 0"
}
],
"commands": [
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.refreshComponents",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.information",
"title": "Information",
"icon": "$(info)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.installComponent",
"title": "Install",
"icon": "$(desktop-download)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.startComponent",
"title": "Start",
"icon": "$(debug-start)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.runAllWorkflows",
"title": "Run All Workflows",
"enablement": "!githubLocalActions:noWorkflows && workspaceFolderCount > 0",
"icon": "$(run-all)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.runEvent",
"title": "Run Event",
"enablement": "!githubLocalActions:noWorkflows && workspaceFolderCount > 0",
"icon": "$(symbol-event)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.refreshWorkflows",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.openWorkflow",
"title": "Open Workflow",
"icon": "$(go-to-file)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.runWorkflow",
"title": "Run Workflow",
"icon": "$(debug-start)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.runJob",
"title": "Run Job",
"icon": "$(debug-start)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.clearAll",
"title": "Clear All",
"enablement": "!githubLocalActions:noHistory && !githubLocalActions:isRunning && !githubLocalActions:noWorkflows && workspaceFolderCount > 0",
"icon": "$(clear-all)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.refreshHistory",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.viewOutput",
"title": "View Output",
"enablement": "viewItem =~ /^githubLocalActions.history_(Success|Failed|Cancelled).*/",
"icon": "$(book)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.restart",
"title": "Restart",
"enablement": "viewItem =~ /^githubLocalActions.history_(Success|Failed|Cancelled).*/",
"icon": "$(debug-restart)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.stop",
"title": "Stop",
"enablement": "viewItem =~ /^githubLocalActions.history_(Running).*/",
"icon": "$(debug-stop)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.remove",
"title": "Remove",
"enablement": "viewItem =~ /^githubLocalActions.history_(Success|Failed|Cancelled).*/",
"icon": "$(close)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.refreshSettings",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.editSecret",
"title": "Edit Secret",
"icon": "$(edit)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.editVariable",
"title": "Edit Variable",
"icon": "$(edit)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.editInput",
"title": "Edit Input",
"icon": "$(edit)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.addRunner",
"title": "Add Runner",
"icon": "$(add)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.editContainerEngine",
"title": "Edit Container Engine",
"icon": "$(edit)"
}
],
"menus": {
"commandPalette": [
{
"command": "githubLocalActions.refreshComponents",
"when": "never"
},
{
"command": "githubLocalActions.information",
"when": "never"
},
{
"command": "githubLocalActions.installComponent",
"when": "never"
},
{
"command": "githubLocalActions.startComponent",
"when": "never"
},
{
"command": "githubLocalActions.runAllWorkflows",
"when": "never"
},
{
"command": "githubLocalActions.runEvent",
"when": "never"
},
{
"command": "githubLocalActions.refreshWorkflows",
"when": "never"
},
{
"command": "githubLocalActions.openWorkflow",
"when": "never"
},
{
"command": "githubLocalActions.runWorkflow",
"when": "never"
},
{
"command": "githubLocalActions.runJob",
"when": "never"
},
{
"command": "githubLocalActions.clearAll",
"when": "never"
},
{
"command": "githubLocalActions.refreshHistory",
"when": "never"
},
{
"command": "githubLocalActions.viewOutput",
"when": "never"
},
{
"command": "githubLocalActions.restart",
"when": "never"
},
{
"command": "githubLocalActions.stop",
"when": "never"
},
{
"command": "githubLocalActions.remove",
"when": "never"
},
{
"command": "githubLocalActions.refreshSettings",
"when": "never"
},
{
"command": "githubLocalActions.editSecret",
"when": "never"
},
{
"command": "githubLocalActions.editVariable",
"when": "never"
},
{
"command": "githubLocalActions.editInput",
"when": "never"
},
{
"command": "githubLocalActions.addRunner",
"when": "never"
},
{
"command": "githubLocalActions.editContainerEngine",
"when": "never"
}
],
"view/title": [
{
"command": "githubLocalActions.refreshComponents",
"when": "view == components",
"group": "navigation@0"
},
{
"command": "githubLocalActions.runAllWorkflows",
"when": "view == workflows",
"group": "navigation@0"
},
{
"command": "githubLocalActions.runEvent",
"when": "view == workflows",
"group": "navigation@1"
},
{
"command": "githubLocalActions.refreshWorkflows",
"when": "view == workflows",
"group": "navigation@2"
},
{
"command": "githubLocalActions.clearAll",
"when": "view == history",
"group": "navigation@0"
},
{
"command": "githubLocalActions.refreshHistory",
"when": "view == history",
"group": "navigation@1"
},
{
"command": "githubLocalActions.refreshSettings",
"when": "view == settings",
"group": "navigation@0"
}
],
"view/item/context": [
{
"command": "githubLocalActions.information",
"when": "view == components && viewItem =~ /^githubLocalActions.component.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.installComponent",
"when": "view == components && viewItem =~ /^githubLocalActions.component_(Not Installed|Not Activated).*/",
"group": "inline@1"
},
{
"command": "githubLocalActions.startComponent",
"when": "view == components && viewItem =~ /^githubLocalActions.component_Not Running.*/",
"group": "inline@1"
},
{
"command": "githubLocalActions.openWorkflow",
"when": "view == workflows && viewItem =~ /^githubLocalActions.workflow.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.runWorkflow",
"when": "view == workflows && viewItem =~ /^githubLocalActions.workflow.*/",
"group": "inline@1"
},
{
"command": "githubLocalActions.runJob",
"when": "view == workflows && viewItem =~ /^githubLocalActions.job.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.viewOutput",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.restart",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@1"
},
{
"command": "githubLocalActions.stop",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@2"
},
{
"command": "githubLocalActions.remove",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@3"
},
{
"command": "githubLocalActions.editSecret",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s).*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.editVariable",
"when": "view == settings && viewItem =~ /^githubLocalActions.variable(?!s).*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.editInput",
"when": "view == settings && viewItem =~ /^githubLocalActions.input(?!s).*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.addRunner",
"when": "view == settings && viewItem =~ /^githubLocalActions.runners.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.editContainerEngine",
"when": "view == settings && viewItem =~ /^githubLocalActions.containerEngine(?!s).*/",
"group": "inline@0"
}
]
},
"colors": [
{
"id": "GitHubLocalActions.green",
"description": "Color for green in GitHub Local Actions extension",
"defaults": {
"dark": "#89d185",
"light": "#89d185"
}
},
{
"id": "GitHubLocalActions.yellow",
"description": "Color for yellow in GitHub Local Actions extension",
"defaults": {
"dark": "#cca700",
"light": "#cca700"
}
},
{
"id": "GitHubLocalActions.red",
"description": "Color for red in GitHub Local Actions extension",
"defaults": {
"dark": "#f48771",
"light": "#f48771"
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"dependencies": {
"child_process": "^1.0.2",
"yaml": "^2.5.1"
},
"devDependencies": {
"@types/mocha": "^10.0.7",
"@types/node": "20.x",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.9.1",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
}
}