【发布时间】:2016-07-05 22:57:50
【问题描述】:
我在编译我的打字稿文件的 Visual Studio 代码中有这个任务。我想通过将所有打字稿添加到一个文件夹并将所有 javascript 添加到另一个文件夹来制作更清晰的文件结构。我如何更改我的任务的参数来做到这一点?我当前的代码导致它将输出编译为与打字稿位于同一文件夹中。这是当前代码:
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "tsc",
// The command is a shell script
"isShellCommand": true,
// Show the output window only if unrecognized errors occur.
"showOutput": "silent",
// args is the HelloWorld program to compile.
"args": [
"scripts/front_end/view_models/search_filter_view_model.ts",
"scripts/front_end/models/area_getter.ts",
"scripts/front_end/bootstrap_app.ts",
"scripts/front_end/models/category.ts",
"scripts/front_end/plugins/slideshow.ts"
],
// use the standard tsc problem matcher to find compile problems
// in the output.
"problemMatcher": "$tsc"
}
【问题讨论】:
标签: javascript typescript visual-studio-code