Skip to content

plainloop-jp/oss-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSS Starter Kit

License: MIT

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,contributing

Example 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.yml

Existing 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,contributing

What it creates

  • CONTRIBUTING.md
  • SECURITY.md
  • CODE_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-run

Output machine-readable JSON:

npx oss-starter-kit init . --dry-run --json

Create only selected starter files:

npx oss-starter-kit init . --only security,contributing

Available names for --only:

  • contributing
  • security
  • code-of-conduct
  • pull-request-template
  • bug-report
  • feature-request
  • issue-config

Existing files are never overwritten.

Development

Run the local source code:

node ./src/cli.js init . --dry-run

Run the tests:

npm test

Contributing

Contributions are welcome. See CONTRIBUTING.md.

Security

For security reports, see SECURITY.md.

License

MIT

About

A small CLI that creates starter files for open-source projects.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors