atom-typescript 抱怨 tsconfig.json——我怎样才能自动创建一个?
atom-typescript complaining about tsconfig.json--how can I automatically create one?
我刚开始使用这里引用的 "atom-typescript" 插件:
Getting Started With TypeScript
该页面指出,要使用 atom-typescript,我们实际上只需要:
Now create a new .ts TypeScript file and start hacking away. AtomTS will take care of compiling it to .js and create a default tsconfig.json TypeScript project file for you.
这是不是的情况,因为我创建了一个简单的目录结构,并且在尝试构建任何 *.ts 文件时收到以下错误:
我需要使用 'Create tsconfig.json project file' 命令的错误状态——我根本找不到这个命令。
我知道我可以手动创建文件,但我想知道是否/在哪里可以自动创建文件。谢谢!
键入 cmd(ctrl)+shift+p
以显示命令列表,然后 tsconfig
找到生成 tsconfig.json
文件的命令。
安装打字稿,然后在shell中执行"tsc --init"命令。
将生成 tsconfig.json 文件。
我刚开始使用这里引用的 "atom-typescript" 插件:
Getting Started With TypeScript
该页面指出,要使用 atom-typescript,我们实际上只需要:
Now create a new .ts TypeScript file and start hacking away. AtomTS will take care of compiling it to .js and create a default tsconfig.json TypeScript project file for you.
这是不是的情况,因为我创建了一个简单的目录结构,并且在尝试构建任何 *.ts 文件时收到以下错误:
我需要使用 'Create tsconfig.json project file' 命令的错误状态——我根本找不到这个命令。
我知道我可以手动创建文件,但我想知道是否/在哪里可以自动创建文件。谢谢!
键入 cmd(ctrl)+shift+p
以显示命令列表,然后 tsconfig
找到生成 tsconfig.json
文件的命令。
安装打字稿,然后在shell中执行"tsc --init"命令。 将生成 tsconfig.json 文件。