-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
22 lines (22 loc) · 1.03 KB
/
tsconfig.json
File metadata and controls
22 lines (22 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"compilerOptions": {
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, //指定生成哪个模块系统代码
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, //目标代码类型
"noImplicitAny": false, //在表达式和声明上有隐含的'any'类型时报错。
"sourceMap": false, //用于debug
"rootDir":"./src", //仅用来控制输出的目录结构--outDir。
"outDir":"./build", //重定向输出目录。
"watch":true, //在监视模式下运行编译器。会监视输出文件,在它们改变时重新编译。
"allowJs": false, // 允许编译js
"checkJs": false // 在js文件中报告错误
},
"include":[
"./src/**/*",
"./typings/*.d.ts"
],
"exclude":[
"views",
"static",
"node_modules"
]
}