bombyx
🧰 A CLI tool for automatically completing basic project configurations, supporting initialization of development tools like ESLint and Husky.
Introduction
[bombyx](file:///Users/jesse/github/cli-collection/packages/bombyx/src/index.ts#L12-L34) is a lightweight command-line tool designed to help developers quickly add basic configurations of commonly used development tools to their projects. It currently supports:
You can use the CLI to enable these configurations quickly, and optionally specify the project root directory for customization.
Installation
You can run it directly using npx without installation:
npx bombyxUsage
Basic Usage
Run inside your project root directory:
npx bombyxThis command will automatically perform the following actions:
- Detect and read [package.json](file:///Users/jesse/github/cli-collection/package.json)
- Initialize ESLint configuration (if not already present)
- Initialize Husky configuration (if not already present)
- Update
scriptsand related fields in [package.json](file:///Users/jesse/github/cli-collection/package.json)
Specify Working Directory
You can also specify a target project directory:
npx bombyx my-projectCLI Arguments
| Argument | Description |
|---|---|
-h, --help | Show help message |
-v, --version | Show version number |
API
You can also use [bombyx](file:///Users/jesse/github/cli-collection/packages/bombyx/src/index.ts#L12-L34) programmatically in your Node.js project:
import { bombyx } from 'bombyx';
await bombyx({
dir: './your/project/dir' // Optional
});This function will apply the default set of configurations to your project.
