Typescript的外部输出路径

时间:2016-07-18 12:16:15

标签: json typescript output tsc tsconfig

我的项目结构如下:

<div class="event">
   <img src="https://lh4.ggpht.com/wKrDLLmmxjfRG2-E-k5L5BUuHWpCOe4lWRF7oVs1Gzdn5e5yvr8fj-ORTlBF43U47yI=w300">
		<span class="titel">text text text text text text text text text </span>
</div>

我正在尝试使用:

来使用不同的tsconfig.json文件
Root
|
+- /build
|  |
|  +- /server
|  |
|  +- /app
|
+- /source
   |
   +- /server
   |  |
   |  +-tsconfig.json
   |  |
   |  +-(typescript files)
   |
   +- /app
      |
      +- tsconfig.json
      |
      +- (typescript files)

原因是不同的输出目标。当我在/ server文件夹中的tsconfig.json文件中指定outdir为

tsc -p <path>

它在源名为build / server

的源代码中创建文件夹

有没有比指定项目根更进一步导航的方法?

0 个答案:

没有答案
相关问题