Git 应该跟踪 "typings" 文件夹吗? (typings.json)
Should Git track the "typings" folder? (typings.json)
我想知道我的 Git 是否应该跟踪 /typings
文件夹中的文件。
这个文件夹是运行typings install
创建的(我猜的),好像是运行npm install
时自动创建的。参见 https://github.com/typings/typings
既然它是生成的内容,我相信我们不应该跟踪它,但我想得到一些关于它的反馈。谢谢!
Since it is generated content I believe we should not track it, but I'd like to have some feedback about it.
我总是检查它。直到它成为npm
的一部分,这就是我所做的。还可以帮助我克服 错误的定义文件 并与 我的项目 一起工作。 (例如 )
您应该将 typings 文件夹视为 TypeScript 的 node_modules 文件夹,因此不应签入。如果您想简化构建,请添加
{
"scripts" : {
"postinstall": "typings install"
}
}
到你的 package.json 文件然后当你的 运行 npm install.不过别忘了签入您的 typings.json。
我想知道我的 Git 是否应该跟踪 /typings
文件夹中的文件。
这个文件夹是运行typings install
创建的(我猜的),好像是运行npm install
时自动创建的。参见 https://github.com/typings/typings
既然它是生成的内容,我相信我们不应该跟踪它,但我想得到一些关于它的反馈。谢谢!
Since it is generated content I believe we should not track it, but I'd like to have some feedback about it.
我总是检查它。直到它成为npm
的一部分,这就是我所做的。还可以帮助我克服 错误的定义文件 并与 我的项目 一起工作。 (例如
您应该将 typings 文件夹视为 TypeScript 的 node_modules 文件夹,因此不应签入。如果您想简化构建,请添加
{
"scripts" : {
"postinstall": "typings install"
}
}
到你的 package.json 文件然后当你的 运行 npm install.不过别忘了签入您的 typings.json。