Since I first saw a dist/
directory in many open source projects, usually on GitHub, I've been wondering what it means.
With dist
, vendor
, lib
, src
, and many other folder names that we see quite often, I sometimes wonder how I should name my own folders.
Correct me if I'm wrong!
- src: Contains the sources. Sometimes only the pure sources, sometimes with the minified version, depends on the project.
- vendor: Contains other dependencies, like other open source projects.
- lib: Good question, it's really close to
vendor
actually, depending on the project we can see one or another or both...
- dist: From what I saw, it contains the "production" files, the one we should use if we want to use the library.
Why is open source so confusing? Isn't it possible to do things clearer? At least per language because some languages use specific names.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…