[TypeScript] Using Exclude and RootDir until File Globs Lands in 2.0.

Files globs will be available in TypeScript 2.0, so in the meantime, we need to use "exclude" and "rootDir" to configure which files to load. This lesson shows how to switch from "files" to "exclude".

Curently, in tsconfig.json, we use "files" to tell the main entry file as "src/main". And import other file into main.ts. But the problem is if you want add each files manually into "files" config setting, IDEs cannot give the autocomplete for the rest of files.

From TypeScript 2.0 We will be able to get the auto complete by just current setting, but for now we need to use "exclude" and "rootDir" to tell TypeScript which files we want to use.

{
    "compilerOptions": {
        "rootDir": "src",
        "module": "commonjs",
        "target": "es5",
        "noImplicitAny": false,
        "sourceMap": false,
        "outDir": "./dist",
        "noEmitOnError": true
    },
    "exclude": [
        "node_modules"
    ]
}
时间: 2024-10-25 07:39:21

[TypeScript] Using Exclude and RootDir until File Globs Lands in 2.0.的相关文章

为什么NTFS删除超过4G大文件或数据库文件后FILE RECORD大小表现为0

为什么NTFS删除超过4G大文件或数据库文件后FILE RECORD大小表现为0? 答:NTFS删除一个文件,必须要完成如下几个流程,才算完结: 1.更改文件系统$bitmap,释放空间 2.更改$mft filerecord项的属性为删除 3.更改$mft:$bitmap的位图信息为0,释放这个filerecord的占用空间 4.清除目录链表中关于本文件的item信息. 这个流程是理想状态下的处理规则,但实际上,最头疼的是OS要考虑这个问题:如果在上述4个步骤中出现中断(如突然断电.死机等),

InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!

问题描述: centos 安装MySQL $yum install mysql-server 安装之后执行命令mysql 报错: 查看mysql的启动日志: [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevan

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/Users/lonecloud/tomcat/apache-tomcat-7.0.70 2/webapps/myproject/WEB-INF/classes/cn/lone

解决这个报错的解决办法: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/Users/lonecloud/tomcat/apache-tomcat-7.0.70 2/webapps/myproject/WEB-INF/classes/cn/lonecloud/dao/Impl/UserDaoImpl.class]; ne

【转】class file has wrong version 50.0, should be 49.0错误

编译的时候,发生如下错误: class file has wrong version 50.0, should be 49.0 究其原因: 由于引入的第三方jar包的编译器版本与当前编译器版本不一致造成. 这个类是在JDK1.6的环境下编译的,把他放在JDK1.5环境的服务器下发生以上错误,只要将这个类重新在JDK1.5环境下编译就可以了 解决方案: 查看服务器JDK 的版本: java –version 当中 49.0 即是指 Java 的 1.5 版本, 而 48.0 是指 Java 的 1

PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

代码在本地运行一切都OK,放到服务器上,网站访问正常,上传就出现该错误. 提示:PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 出现问题的服务器:Windows server 2012 Standard iis8 php5.5.37 fastCGI 原因:原来是在配置php环境的时候,php.ini没有设置upload_tmp_dir . 如果 php.ini 没有设置

mysql5.7.12/13在安装新实例时报错:InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero

.bin/mysqld --initialize-insecure --basedir=xxx --datadir=xxx 然后 .bin/mysqld_safe --defaults-file=xxx --user=mysql & 抛错: InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file:

Asp.Net程序报错 - error CS2001: Source file 'C:\Windows\TEMP\eulevokb.0.cs' could not be found warning CS2008

一个Asp.Net项目,Excel导入功能出现如下错误:error CS2001: Source file 'C:\Windows\TEMP\eulevokb.0.cs' could not be foundwarning CS2008: No source files specified 本地执行是没有问题的,访问正式服务器就会出现这样的错误,搜索一下,原来是权限的问题. 解决办法:打开C盘,找到C:\Windows\TEMP目录,给temp添加IIS_IUSER的权限就没有问题了! Asp.

Warning: File upload error - unable to create a temporary file in Unknown on line 0 的解决办法

upload_tmp_dir  临时文件夹问题 上传文件提示 Warning: File upload error - unable to create a temporary file in Unknown on line 0 找到php.ini 中的 upload_tmp_dir 把前边的“:”去掉然后改为upload_tmp_dir =C:\Windows\temp 最后记得重启apache 是不是很简单呀 原文地址:https://www.cnblogs.com/xm666/p/1161

如果遇到php5.6 上传图片error代码为6 或者 报错“PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0"如何解决

问题:再利用webuploader上传图片的时候发现,报错,打印了$_FILES["file"]["error"] 发现是6,找不到临时文件夹: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 $_FILES['file']['error']有以下几种类型: 1.UPLOAD_ERR_OK 其值为 0,没有错误发生,文件上传成功.   2.UPLOAD_ERR_INI_SIZE 其值为 1,上传的文件