php 供应商在网络文件结构中是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16865980/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 11:48:23  来源:igfitidea点击:

What does vendor mean in web file structure?

phphtmlweb-applications

提问by Ben Harvey

Every now and then I see vendorbeing used in a directory structure on web apps.

时不时地看到vendor被用在 Web 应用程序的目录结构中。

Like this:

像这样:

<script src="js/vendor/modernizr-2.6.2.min.js"></script> 

What does this mean? Why do people use it?

这是什么意思?人们为什么使用它?

More importantly, should Iuse it? I make web apps using php and javascript.

更重要的是,应该使用它吗?我使用 php 和 javascript 制作网络应用程序。

回答by Lepidosteus

It's a common convention to put files coming from various third party sources (the "vendors") in a folder named that way.

将来自各种第三方来源(“供应商”)的文件放在以这种方式命名的文件夹中是一种常见的约定。

You can use it as it makes it clearer what's "from the project" and what is a dependency you rely upon, but it is merely a convention, not an obligation.

您可以使用它,因为它可以更清楚地说明“来自项目”的内容以及您依赖的依赖项,但这只是约定,而不是义务。

回答by Steve

/vendorusually refers to a directory that contains third party plugins.

/vendor通常是指包含第三方插件的目录。

回答by Emii Khaos

Most if the time, there are 3rd party libs stored and commonly it's ignored in VCS.

大多数情况下,存储了 3rd 方库,并且通常在 VCS 中被忽略。