Bilibili-Evolved/.vscode/tasks.json
2022-01-05 23:07:55 +08:00

137 lines
4.3 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command": "yarn webpack --config ./webpack/webpack.dev.js --progress",
"group": "build",
"problemMatcher": [],
"label": "本体:编译开发版本 dev:build-core"
},
{
"type": "shell",
"command": "yarn webpack --watch --config ./webpack/webpack.dev.js --progress",
"group": "build",
"problemMatcher": [],
"label": "本体:监视开发版本 dev:watch-core"
},
{
"type": "shell",
"command": "yarn serve dist -p ${input:serverPort}",
"group": "build",
"problemMatcher": [],
"label": "本体:启动服务器 dev:serve-core"
},
{
"type": "shell",
"command": "yarn serve registry/dist -p ${input:serverPort}",
"group": "build",
"problemMatcher": [],
"label": "功能:启动服务器 dev:serve-features"
},
{
"type": "shell",
"command": "yarn webpack --watch --config ./registry/webpack/components.js --progress --mode=development",
"group": "build",
"problemMatcher": [],
"label": "功能:监视组件 dev:watch-components"
},
{
"type": "shell",
"command": "yarn webpack --watch --config ./registry/webpack/plugins.js --progress --mode=development",
"group": "build",
"problemMatcher": [],
"label": "功能:监视插件 dev:watch-plugins"
},
// {
// "type": "shell",
// "command": "yarn webpack --config ./webpack/webpack.measure.js --progress",
// "problemMatcher": [],
// "label": "打包分析 dev:measure"
// },
// {
// "type": "shell",
// "command": "./dist/stats.html",
// "problemMatcher": [],
// "dependsOn": "打包分析 dev:measure",
// "label": "查看打包分析 dev:stats"
// },
{
"type": "shell",
"command": "yarn eslint -f html -o dev/eslint.html --cache --cache-location node_modules/.cache/eslint/ 'src/**/*.@(js|ts|vue)' 'registry/lib/**/*.@(js|ts|vue)'",
"group": "build",
"problemMatcher": [],
"label": "生产:代码检查 prod:lint"
},
{
"type": "shell",
"command": "yarn eslint -f html -o dev/eslint.html --cache --cache-location node_modules/.cache/eslint/ --fix 'src/**/*.@(js|ts|vue)' 'registry/lib/**/*.@(js|ts|vue)'",
"group": "build",
"problemMatcher": [],
"label": "生产:代码修复 prod:lint-fix"
},
{
"type": "shell",
"command": "yarn webpack --config ./webpack/webpack.prod.js --progress",
"group": "build",
"problemMatcher": [],
"label": "本体:编译生产版本 prod:build-core"
},
{
"type": "shell",
"command": "yarn webpack --config ./registry/webpack/components.js --progress",
"group": "build",
"problemMatcher": [],
"label": "功能:编译组件 prod:build-components"
},
{
"type": "shell",
"command": "yarn webpack --config ./registry/webpack/plugins.js --progress",
"group": "build",
"problemMatcher": [],
"label": "功能:编译插件 prod:build-plugins"
},
{
"type": "shell",
"command": "yarn webpack --config ./registry/webpack/all.js",
"group": "build",
"problemMatcher": [],
"label": "功能:编译所有 prod:build-features"
},
{
"type": "shell",
"command": "yarn webpack --config ./registry/webpack/docs.js --progress",
"group": "build",
"problemMatcher": [],
"label": "功能:编译功能文档 prod:build-docs"
},
{
"type": "shell",
"command": "rm -r ./node_modules/.cache/webpack/",
"label": "缓存:清除 webpack cache:clean-webpack",
"problemMatcher": []
},
{
"type": "shell",
"command": "rm -r ./node_modules/.cache/babel-loader/",
"label": "缓存:清除 babel cache:clean-babel",
"problemMatcher": []
},
{
"type": "shell",
"command": "rm -r ./node_modules/.cache/",
"label": "缓存:清除全部 cache:clear-all",
"problemMatcher": []
}
],
"inputs": [
{
"id": "serverPort",
"type": "promptString",
"description": "监听端口",
"default": "5000"
}
]
}