tsconfig.josn配置
{
// compilerOptions TS编译器的选项
"compilerOptions": {
/*
module指定要使用的模块化规范
*/
"module": "commonjs",
// target 用来指定TS被编译的JS版本ÒÒ
"target": "es5",
// lib用来指定项目要使用的库 例如node.js中的DOM
"lib": [],
// outDir 用来指定打包后放置的目录
"outDir": "./dist",
// outFile把代码合并到一个文件 设置这个后所有全局作用域的代码合并为一个文件
"outFile": "./dist/app.js",
// allowJs 是否对js文件进行编译
"allowJs": false,
// checkJs 检查js是否符合规范
"checkJs": false,
// removeComments是否移除注释
"removeComments": false,
// noEmit 是否生成编译后文件
"noEmit": false,
// noEmitOnError 有错误时候不生成编译后文件
"noEmitOnError": false,
// alwaysStrict是否开启严格模式
"alwaysStrict": false,
// noImplicitAny 是否不允许隐式any
"noImplicitAny": false,
// noImplicitThis不允许使用不明确的this
"noImplicitThis": false,
// strictNullChecks 严格检查空值
"strictNullChecks": false,
//strict所有严格检查开关
"strict": false,
"sourceMap": true
},
// exclude那些不要编译
"exclude": [
"node_modules"
],
// include用来指定那些文件可以被编译
// 路径 **表示任意目录 *表示任意文件
"include": [
"./src/**/*"
],
// fil