Skip to content
Snippets Groups Projects
Unverified Commit 9f5228b7 authored by carsakiller's avatar carsakiller
Browse files

add: client build script #76

Edited VS Code build task to use new client build script
parent 1a3e9830
Branches
Tags
No related merge requests found
{
"version": "2.0.0",
"type": "shell",
"windows": {
"options": {
"shell": {
"executable": "C:\\Windows\\System32\\cmd.exe",
"args": [
"/c"
]
}
}
},
"options": {
"cwd": "${workspaceFolder}"
},
"tasks": [
{
"type": "typescript",
"tsconfig": "client/tsconfig.json",
"problemMatcher": [
"$tsc"
],
"group": {
"kind": "build",
"isDefault": true
},
"label": "tsc: 构建 - client/tsconfig.json"
}
]
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command": "./buildClient.sh",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
},
"icon": { "color": "terminal.ansiCyan", "id": "server-process" },
"label": "Build Client"
}
]
}
#!/bin/bash
set -e
bold=$(tput bold)
normal=$(tput sgr0)
black='\e[0;30m'
red='\e[0;31m'
green='\e[0;32m'
cyan='\e[0;36m'
echo -e "${red}${bold}Building VS Code Extension Client..."
echo -e "${cyan}${bold}Compiling TypeScript...${black}${normal}"
cd client
npm i
npm run build
echo -e "${green}${bold}Building Addon Manager WebVue...${black}${normal}"
cd webvue
npm i
npm run build
echo -e "${green}${bold}Build complete!${black}${normal}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment