Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does vendor mean in web file structure?

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

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 I use it? I make web apps using php and javascript.

like image 378
Ben Harvey Avatar asked May 31 '13 21:05

Ben Harvey


People also ask

What is vendor in Web?

Vendor's Website means a website published by or on behalf of Vendor and includes any website through which Vendor offers products for sale, other than One Fine Baby Shop.

What is a vendor file used for?

The vendor master file is the repository of a considerable amount of information about a company's suppliers, which are used for the payment of supplier invoices and the issuance of purchase orders.

What is vendor js file?

The vendor. js contains npm modules being used in the app. module. ts . The multiple initialization may be caused by Module lazy loading, but it is hard to say.

What is a vendor in Golang?

js land, Golang's vendor directory is basically the same as Node's node_modules . It is a directory found at the root of a Go module that stores a copy of all the code the module depends on. The vendored code is used to compile the final executable when the go build command is run.


2 Answers

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.

like image 79
Lepidosteus Avatar answered Oct 12 '22 23:10

Lepidosteus


/vendor usually refers to a directory that contains third party plugins.

like image 36
Steve Avatar answered Oct 13 '22 01:10

Steve