vim – 如何在NerdTree中通过TypeScript隐藏自动生成的文件?
发布时间:2020-12-15 21:52:03 所属栏目:安全 来源:网络整理
导读:我想通过NERDTree中的Typescript转换器隐藏自动生成的文件(.js .js.map). 解决方法 感谢Hussein Nazzal,我已经成功解决了这个问题(因为我使用的是Angular2,需要注意几个步骤): 以这种方式将outDir属性添加到tsconfig.json: { "compilerOptions": { "target
我想通过NERDTree中的Typescript转换器隐藏自动生成的文件(.js .js.map).
解决方法
感谢Hussein Nazzal,我已经成功解决了这个问题(因为我使用的是Angular2,需要注意几个步骤):
>以这种方式将outDir属性添加到tsconfig.json: { "compilerOptions": { "target": "es5","module": "system","moduleResolution": "node","sourceMap": true,"emitDecoratorMetadata": true,"experimentalDecorators": true,"removeComments": false,"noImplicitAny": false,"outDir": "buildjs/" },"exclude": [ "node_modules","typings/main","typings/main.d.ts" ] } >然后在.vimrc文件中添加以下内容: let NERDTreeIgnore=['buildjs$'] >不要忘记修改index.html并在System.import(‘buildjs / main’)附近添加以下行, System.import('app/main')` >添加到System.config map: { app: 'buildjs' } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |