LedFx/.vscode/tasks.json

89 lines
3.2 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "[1]-[Backend]-install",
"type": "shell",
"group": "build",
"command": "cd /workspaces/${workspaceFolderBasename}; python -m pip install -r requirements.txt -r requirements-dev.txt -r docs/requirements-docs.txt && python setup.py develop",
"problemMatcher": []
},
{
"label": "[GIT][Backend]-install",
"type": "shell",
"command": "cd /ledfx-git; python -m pip install -r requirements.txt -r requirements-dev.txt -r docs/requirements-docs.txt && python setup.py develop",
"problemMatcher": []
},
{
"label": "[2]-[Backend]:8888-start",
"type": "shell",
"group": "build",
"command": "PULSE_SERVER=$PULSE_SERVER ledfx",
"problemMatcher": []
},
{
"label": "[3]-[Frontend]:3000-start",
"type": "shell",
"command": "cd /workspaces/${workspaceFolderBasename}/frontend; yarn; yarn start",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "[GIT|DEV][Frontend]:3001",
"type": "shell",
"command": "cd /ledfx-git/frontend && yarn && export PORT=3001 && yarn start",
"problemMatcher": []
},
{
"label": "[GIT|CUSTOM][Frontend]:3002",
"type": "shell",
"command": "cd /; if [ ! -d ledfxcustom ] ; then git clone ${input:customgit} -b ${input:custombranch} ledfxcustom; else cd ledfxcustom && git pull && cd ..; fi && cd ledfxcustom/frontend && yarn && export PORT=3002 && yarn start",
"problemMatcher": []
},
{
"label": "[6]-[Docs]:8000",
"type": "shell",
"command": "cd /workspaces/${workspaceFolderBasename}/docs; make livehtml",
"problemMatcher": []
},
{
"label": "[5]-[PRE-COMMIT]",
"type": "shell",
"group": "build",
"command": "cd /workspaces/${workspaceFolderBasename}; pre-commit run --all-files",
"problemMatcher": []
},
{
"label": "[4]-[Frontend]-build",
"group": "build",
"type": "shell",
"command": "rm -rf /workspaces/${workspaceFolderBasename}/ledfx_frontend/*; runuser -l vscode -c 'cd /workspaces/${workspaceFolderBasename}/frontend; yarn build'",
"problemMatcher": []
}
],
"inputs": [
{
"id": "customgit",
"description": "Enter the custom LedFx repository",
"default": "https://github.com/YeonV/LedFx",
"type": "pickString",
"options": [
"https://github.com/YeonV/LedFx",
"https://github.com/LedFx/LedFx"
]
},
{
"id": "custombranch",
"description": "Enter the branch",
"default": "dev",
"type": "pickString",
"options": [
"dev",
"master"
]
}
]
}