oss-starter-kit
v0.2.1
Published
A small CLI that creates starter files for open-source projects.
Maintainers
Readme
OSS Starter Kit
A small command-line tool that creates starter files for open-source projects.
It pairs well with OSS Readiness Checker: check what is missing, then generate a practical starter set.
Quick start
Run this command in the root folder of your project:
npx oss-starter-kit init .Windows PowerShell:
npx.cmd oss-starter-kit init .Create only selected files:
npx oss-starter-kit init . --only security,contributingExample output
When starter files are created, the output looks like this:
OSS Starter Kit
Project: /path/to/your-project
[CREATED] CONTRIBUTING.md
[CREATED] SECURITY.md
[CREATED] CODE_OF_CONDUCT.md
[CREATED] .github/pull_request_template.md
[CREATED] .github/ISSUE_TEMPLATE/bug-report.yml
[CREATED] .github/ISSUE_TEMPLATE/feature-request.yml
[CREATED] .github/ISSUE_TEMPLATE/config.ymlExisting files are never overwritten. If a file already exists, it is shown as
[SKIPPED].
日本語で試す
OSS として公開するときによく必要になるファイルをまとめて作る CLI ツールです。既にあるファイルは上書きせず、スキップします。
Windows PowerShell:
npx.cmd oss-starter-kit init .macOS or Linux:
npx oss-starter-kit init .特定のファイルだけ作りたい場合:
npx oss-starter-kit init . --only security,contributingWhat it creates
CONTRIBUTING.mdSECURITY.mdCODE_OF_CONDUCT.md.github/pull_request_template.md.github/ISSUE_TEMPLATE/bug-report.yml.github/ISSUE_TEMPLATE/feature-request.yml.github/ISSUE_TEMPLATE/config.yml
Requirements
- Node.js 20 or later
Usage
Create starter files in the current folder:
npx oss-starter-kit init .Preview what would be created:
npx oss-starter-kit init . --dry-runOutput machine-readable JSON:
npx oss-starter-kit init . --dry-run --jsonCreate only selected starter files:
npx oss-starter-kit init . --only security,contributingAvailable names for --only:
contributingsecuritycode-of-conductpull-request-templatebug-reportfeature-requestissue-config
Existing files are never overwritten.
Development
Run the local source code:
node ./src/cli.js init . --dry-runRun the tests:
npm testContributing
Contributions are welcome. See CONTRIBUTING.md.
Security
For security reports, see SECURITY.md.
