source-licenser
Version:
Add license information to source files.
72 lines (60 loc) • 1.42 kB
YAML
files:
# All JavaScript files
"*.js":
header:
startBlock: |
/**
* @license
linePrefix: " * "
endBlock: " */"
package.json:
json:
force:
author: "{AUTHOR_NAME} ({AUTHOR_WEB})"
license: "{SPDX}"
private: true
defaults:
homepage: "{HOMEPAGE}"
description: "{DESCRIPTION}"
sortPackage: true
siblingLicenseFile:
name: "LICENSE"
# Should override default license text
license: |
Non-default license text!
footer-none.md:
footer:
startBlock: "\n# License\n\n"
linePrefix: ""
endBlock: ""
# Should override default license text
license: |
Non-default license text!
footer-existing.md:
footer:
startBlock: "\n# License\n\n"
linePrefix: ""
endBlock: ""
siblingLicenseFile:
name: "LICENSE-EXISTING"
helper-substitutions.json:
json:
defaults:
currentYear: "{CURRENT_YEAR}"
years: "{YEARS}"
ignore:
- ignore-me
# Default license text
license: |
Copyright (c) 2022 {AUTHOR_NAME} {AUTHOR_WEB}
[Legalese prose]
SPDX-License-Identifier: {SPDX}
substitutions:
YEARS:
start: 2020
end: CURRENT_YEAR
AUTHOR_NAME: Lao Tzu
AUTHOR_WEB: https://hidden.mysteries
DESCRIPTION: I know the good in not doing.
HOMEPAGE: https://tao-te-ching.mysteries
SPDX: BSD-3-Clause