在TypeScript中进行编码时,应将生成的.js文件提交给git吗? [英] When coding in TypeScript should the generated .js files be committed to git?
本文介绍了在TypeScript中进行编码时,应将生成的.js文件提交给git吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用TypeScript编写node.js应用程序时,建议使用什么方式处理生成的.js文件?
When using TypeScript to write node.js application, what is the recommended way to deal with generated .js files?
我应该将生成的.js文件添加到.gitignore并仅提交.ts文件,还是可以同时提交.ts和生成的.js文件?
Should I add generated .js files to .gitignore and commit only the .ts files or is it OK to commit both .ts and generated .js files?
推荐答案
任何构建任何 VCS的构件都必须从存储库中排除.只是因为存储库必须包含源,所以您可以使用它在任何环境和任何中间存储状态下重建结果
Any build artifacts for any and every VCSes have to be excluded from storing in repository. Just because repository must hold sources, using which you can re-build results in any environment and in any intermediate stored state
这篇关于在TypeScript中进行编码时,应将生成的.js文件提交给git吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文