Run commands by one click for VSCode
https://github.com/Geequlim/command-panel.git
This plugin provides a panel for defining a series of common commands that can be executed with one click.
This plugin is activated when the .vscode/commands.yaml file exists in your project which is the definition file of your commands.
``typescript
interface ICommand {
/** Command name, the title displayed in the command palette */
name: string;
/** The title of the command execution in terminal panel */
title?: string;
/** Command description, hint description after the command name */
description?: string;
/** The prompt message when the mouse is hovered */
tooltip?: string;
/**
* The execution content of the command
* When an array given the commands will be executed one by one
*/
command?: string | string[];
/** Subtask list */
actions?: ICommand[];
}
`
<details>
<summary>Configuration Example</summary>
`yaml
# .vscode/commands.yaml
- name: LayaAir ๅผๅ
actions:
- name: dev
description: ๅฏๅจๅผๅ็ผ่ฏๆๅก
command: yarn concurrently -k "yarn serve" "yarn webpack --config laya/webpack.config.js --watch --env esbuild=true entry=develop ws=3102"
- name: dev:full
description: ็ผ่ฏๅ
จ้จๅนณๅฐ็ปไปถ
command: yarn concurrently -k "yarn serve" "yarn webpack --config laya/webpack.config.js --watch --env esbuild=true entry=all ws=3102"
- name: ็ๆ Laya3D ไปฃ็
description: ไป Unity ๅฏผๅบ็่ตๆบ็ๆ็ปๅฎไปฃ็
command: node tools/bin/cli.js laya laya/laya3d.yaml
- name: FairyGUI ๅฏผๅบ
description: ้่ฆๆฟๆดปไธไธ็ๆฌ FairyGUI
command: node tools/bin/cli.js fairygui laya
- name: CLI ๅทฅๅ
ท
actions:
- name: dev
description: ๅฏๅจ็ผ่ฏๆๅก
command: yarn webpack --config tools/webpack.config.js --watch --env esbuild=true target=ES2020
- name: Unity ๅผๅ
actions:
- name: dev
description: ๅฏๅจๅผๅ็ผ่ฏๆๅก
command: yarn concurrently -k "yarn serve" "yarn webpack --config unity/webpack.config.js --watch --env ws=3102 esbuild=true entry=dev"
- name: dev:full
description: ๅฏๅจ็ผ่ฏๅ
จ้จๆๅก
command: yarn concurrently -k "yarn serve" "yarn webpack --config laya/webpack.config.js --watch --env esbuild=true entry=all ws=3102"
``