在 Visual Studio Code 中,我在 tsconfig.json 的代码中有以下代码
{
"version": "1.6.0",
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"watch": true,
"experimentalAsyncFunctions": true,
"isolatedModules": false,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"preserveConstEnums": true,
"suppressImplicitAnyIndexErrors": true
},
...
}
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,该watch选项为 true。好吧,看起来这不足以将 .ts 文件编译为 .js,就像atom-typescript 那样。基本上,保存 .ts 时,新编译的 .js 应该与 .ts 文件位于同一目录中。
另外,我想避免在我的根项目中使用 gulp,因为我已经将 gulpfile.coffee 用于其他方式。有人有线索吗?
我目前正在使用CLion 2016.2,我会在Windows上使用ssh作为环境工具链而不是MinGW/Cygwin.例如,Pycharm已经支持使用ssh位置(或使用docker容器)的环境的远程位置,并且它运行良好.我想知道这个功能是否可以用于CLion或者更高版本?
到目前为止,我发现尝试在Windows或Linux上配置CLion工具链时存在差异:
然而,我没有看到任何关于远程位置的信息,例如ssh或docker来配置环境,这对Windows特别有用.
所以,我的 pom.xml 具有以下内容:
<build>
<resources>
<resource>
<directory>.</directory>
<excludes>
<exclude>.settings/</exclude>
<exclude>src/</exclude>
<exclude>target/</exclude>
<exclude>.classpath</exclude>
<exclude>.gitignore</exclude>
<exclude>.project</exclude>
<exclude>logging.log</exclude>
<exclude>mvn_cmd.bat</exclude>
<exclude>pom.xml</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
...
Run Code Online (Sandbox Code Playgroud)
我的目标是复制config.properties位于项目根目录的单个文件(例如),并在使用Maven > UpdateEclipse 时将其复制到目标/类中。到目前为止,我发现解决此问题的唯一方法是手动从我的${basedir}目录中排除所有文件。
我相信这可以使用 maven 本机命令直接相当轻松地完成,但我也需要使用m2eclipse来完成此操作。
我认为最好的方法是使用正则表达式来排除除 my 之外的所有内容config.properties,但我不知道 Maven 是否具有这种功能。