Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 让巴贝尔看两个文件夹_Visual Studio Code_Babeljs - Fatal编程技术网

Visual studio code 让巴贝尔看两个文件夹

Visual studio code 让巴贝尔看两个文件夹,visual-studio-code,babeljs,Visual Studio Code,Babeljs,目标:我有两个子文件夹(jsx用于jsx文件)和(dash7用于ECMA-2017脚本),我不想合并这些文件夹。我想设置一个VSCODE任务,可以同时监视这两个文件夹 问题:现在,我有两个独立的任务。一个是“jsx手表”,另一个是“es7手表”。我一次只能用VS代码运行一个 问题:有没有一种方法可以同时完成这两项任务,或者有没有一种方法可以让巴贝尔观看两个单独的文件夹。或者另一种解决方案 { "version": "0.1.0", "command": "${workspaceR

目标:我有两个子文件夹(jsx用于jsx文件)和(dash7用于ECMA-2017脚本),我不想合并这些文件夹。我想设置一个VSCODE任务,可以同时监视这两个文件夹

问题:现在,我有两个独立的任务。一个是“jsx手表”,另一个是“es7手表”。我一次只能用VS代码运行一个

问题:有没有一种方法可以同时完成这两项任务,或者有没有一种方法可以让巴贝尔观看两个单独的文件夹。或者另一种解决方案

{
    "version": "0.1.0",
    "command": "${workspaceRoot}/node_modules/.bin/babel.cmd",
    // "isShellCommand": true,
    "tasks": [
        {
            "args": ["jsx", "--out-dir", "jsxo", "-w", "--source-maps inline"],
            "taskName": "jsx watch",
            "suppressTaskName": true,
            "isBuildCommand": true, // make this the F1 > Task: Run Build Task gesture
            "isBackground": true // tell VS Code not wait for this task to finish
        },
        {
            "args": ["dash7", "--out-dir", "dash", "-w", "--source-maps inline"],
            "taskName": "es7 watch",
            "suppressTaskName": true,
            "isBuildCommand": true, // make this the F1 > Task: Run Build Task gesture
            "isBackground": true // tell VS Code not wait for this task to finish
        }
    ]
}
巴别塔预设

  "babel": {
    "sourceMaps": "inline",
    "presets": [
      "react",
      "node7"
    ]

VSCODE人员刚刚使用新的终端运行程序更新了可视代码:

如果将版本更改为2.0.0,则可以一次运行多个任务

{
    "version": "2.0.0",
    "command": "${workspaceRoot}/node_modules/.bin/babel.cmd",
    // "isShellCommand": true,
    "tasks": [
        {
            "args": ["jsx", "--out-dir", "jsxo", "-w", "--source-maps inline"],
            "taskName": "jsx watch",
            "suppressTaskName": true,
            "isBuildCommand": true, // make this the F1 > Task: Run Build Task gesture
            "isBackground": true // tell VS Code not wait for this task to finish
        },
        {
            "args": ["dash7", "--out-dir", "dash", "-w", "--source-maps inline"],
            "taskName": "es7 watch",
            "suppressTaskName": true,
            "isBuildCommand": true, // make this the F1 > Task: Run Build Task gesture
            "isBackground": true // tell VS Code not wait for this task to finish
        }
    ]
}