| ./dev |
|
Original theme by orderedlist (CC-BY-SA)
Where applicable, all content is licensed under a CC-BY-SA.
|
These are notes on "best practices" for Git project organization.
| File or Directory | Description | Misc |
|---|---|---|
src/ |
Source files. | |
dist/ or bin/ |
Should remain empty in repo. Populated on compilation. | |
tests/ |
Test suite. | |
examples/ |
Example usage | |
README.md |
Project description | |
LICENSE |
License file for source | |
.gitignore |
Git ignore file. |
src/The source files of the project.
dist/The destination directory for compiled source files. This directory should remain empty in the main Git repo.
tests/The test suite to make sure the running code passes testing.
examples/Example usage of your program on small datasets (where applicable).
README.mdA description of the project. This should contain the following, preferably in this order:
LICENSE file. If there are multiple licenses then describe what each portion of the project falls under which license or where to find that information out.If a screenshot isn't appropriate for the project (say it's a simple command line program) then either a block of test with a sample run or an arbitrary picture should be used. If it's unclear what to use as a screenshot, use a free/libre licensed cat picture.
LICENSEThe license of the software. If there are multiple licenses, some options are to make a file per license used with some description either in the file or outside, as to which files in the project fall under which license or to concatenate all licenses into a single file.
.gitignoreThe files for Git to ignore.
Some common options are :
*~ - ignore vi auto save files*.swp - ignore vi file lock filespackage.json - dependencies for your npm packagebower.json - front end dependencies for your JavaScript packageconfigure.acMakefile.amconfigureMakefile.in