Can I hide typescript autogenerated .js and .map.js files in atom?

安稳与你 提交于 2019-12-04 22:44:38

Atom respects .gitignore and will grey out any files matching your .gitignore which you place in the root of your project. This should be sufficient to ignore generated files:

*.js
*.jsx

In addition, your tsconfig.json can output all your files into another path. For example:

{
  "version": "1.6.2",
  "compilerOptions": {
    "outDir": "build"
    "sourceMap": true
  },
  "filesGlob": [
    "./src/**/*.ts",
    "./src/**/*.tsx"
  ]
}

This will inform tsc and atom-typescript to output all the TypeScript files located in src into build.

Even better, the tree-view component in atom also has a setting to not show gitignored files at all:

It's the "Hide VCS Ignored Files" setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!