我应该在.gitignore中排除Aurelia脚本文件夹吗? [英] Should I exclude Aurelia scripts folder in .gitignore?

查看:86
本文介绍了我应该在.gitignore中排除Aurelia脚本文件夹吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该将Aurelia项目的/scripts文件夹放在.gitignore中,因为据我所知,无论如何每次运行都会重新构建它们?

Should I put the /scripts folder of my Aurelia project in .gitignore, since as best as I can tell, they are rebuilt on each run anyway?

我的.gitignore当前包含:

My .gitignore currently contains:

node_modules
jspm_packages
.idea
.DS_STORE

我应该添加以下内容吗?

Should I add the following?

scripts

推荐答案

假设您正在谈论私有存储库: 我们不签入任何生成的文件,包括Visual Studio生成的js文件(位于TypeScript文件旁边)(即使aurelia构建创建了捆绑包,我们也会打开VS的transpile).我们认为将这些文件保留在源代码管理中,在未完成的更改中查看它们等并没有什么好处,甚至不直接使用它们也没什么好处.

Assuming you're talking about a private repo: We don't check in any generated files, including the js files that visual studio generates which live beside the TypeScript files (we leave VS' transpile turned on even though the aurelia build creates the bundle). We didn't think there was enough of a benefit to keep those files in source control, see them in our pending changes, etc when we don't even work directly with them.

如果您想保留所生成文件的记录,可以将它们检入.否则,我不会打扰.

If you want to keep records of the generated files it's fine to check them in. Otherwise I wouldn't bother.

这篇关于我应该在.gitignore中排除Aurelia脚本文件夹吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆