DepDoc helps you document the dependencies of your project, currently supporting Composer and Node packages., (*1)
Usage
Creating and updating dependencies file
./vendor/bin/depdoc update
Creates and updates a DEPENDENCIES.md file in your repository, which contains every installed Composer and Node package, its version and description, and offers you a way to document why and how you use this package., (*2)
By adding a lock emoji (๐) after the version number, you can document that this package should not be updated. Alternatively you can use ๐, โ , or โ., (*3)
Validating dependencies file
./vendor/bin/depdoc validate
Validates that every installed dependency is documented in DEPENDENCIES.md. Also makes sure that no package surpasses its locked version., (*4)
Use strict modes to verify your package version matches the documented dependencies., (*5)
./vendor/bin/depdoc validate --strict
Checks for major and minor version to match, i.e. installed 1.0.1 and documented 1.0.0 will bypass validation but installed 1.1.0 and documented 1.0.0 won't., (*6)
./vendor/bin/depdoc validate --very-strict
Checks for full semantic versioning match, i.e. installed 1.0.1 and documented 1.0.0 will not bypass validation., (*7)
Configuration
Configuration can be provided via .depdoc.json, .depdoc.yml or .depdoc.yml files in the root directory of your project., (*8)
Options
newlineCharacter, (*9)
Default is \n but if you need a different one you can provide it., (*10)
lockSymbol, (*11)
Default is "๐". Alternatively you can use ๐, โ , or โ., (*12)
exportExternalLink, (*13)
Default is true, but if you do not want the external link in your dependencies file you can deactivate it., (*14)
composer, (*15)
Default is true, if you do not want to add composer dependencies set this to false, (*16)
npm, (*17)
Default is true, if you do not want to add npm dependencies set this to false., (*18)