vscode-tasks - tasks.json 依赖于不等待完成
问题描述
我正在设置一个构建过程,其中包含已定义为第一步的 bash 脚本,以便在我的构建中使用 tasks.json。脚本必须按顺序运行,并且它们必须按顺序运行而不是并行运行,因为后续脚本依赖于先前脚本的输出。
设置"dependsOrder": "sequence"
是确保脚本按顺序运行,但存在重叠,即在调用第一个脚本之前调用第二个脚本,依此类推;即:它们仍在并行运行。
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"label": "pageBuilder",
"tasks": [
{
"label": "build",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOrder": "sequence",
"dependsOn": [
"buildCorePages", "convertMarkdownToHtml", "buildArticles"
],
"problemMatcher": "$gcc"
},
{
"label": "convertMarkdownToHtml",
"type": "shell",
"command": "${workspaceRoot}\\build_scripts\\convertMarkdownToHtml.sh"
},
{
"label": "buildCorePages",
"type": "shell",
"command": "${workspaceRoot}\\build_scripts\\buildCorePages.sh"
},
{
"label": "buildArticles",
"type": "shell",
"command": "${workspaceRoot}\\build_scripts\\buildArticles.sh"
}
]
}
如何强制等待脚本完成?
解决方案
推荐阅读
- c# - 带有 MySql 的 EntityFrameworkCore 未创建所有表
- android - 如何从 Huawei AppGallery Connect 下载我的应用分析?
- javascript - 如何将一列添加到 1d json 数组并将其保存到文件中?
- amazon-sqs - 同一个 DLQ 可以同时用于 SNS 故障和 SQS 故障吗?
- security - 方法定义中的默认定义者权限
- installation - 如何在 InstallBuilder 中查找和检查多个文件?
- css - Angular:如何添加全局 CSS(例如添加到正文),但仅限于一个特定页面?
- firebase - 'package:flutter/src/painting/_network_image_io.dart':断言失败:第 25 行 pos 14:'url != null':不正确
- laravel - [Route: assortments.items.create] [URI: assortments/{assortment}/items/create] 缺少必需参数
- python - 在 Pyspark 中执行类似 Excel 的“vlookup”方法