| Crates.io | kotoba-build |
| lib.rs | kotoba-build |
| version | 0.1.16 |
| created_at | 2025-09-17 15:30:31.341542+00 |
| updated_at | 2025-09-17 15:30:31.341542+00 |
| description | Kotoba Build Tool - Project build and task management system |
| homepage | https://github.com/jun784/kotoba |
| repository | https://github.com/jun784/kotoba |
| max_upload_size | |
| id | 1843482 |
| size | 108,758 |
Kotoba Build Toolは、Denoのビルドシステムに似た使い勝手で、Kotobaプロジェクトのビルド、依存関係解決、タスク実行を統合的に管理するツールです。
# リポジトリからクローン
git clone https://github.com/jun784/kotoba.git
cd kotoba
# ビルドツールをビルド
cargo build --release --package kotoba-build
# 実行ファイルを使用
./target/release/kotoba-build --help
# ヘルプ表示
kotoba-build --help
# 利用可能なタスク一覧を表示
kotoba-build --list
# 特定のタスクを実行
kotoba-build dev
kotoba-build build
kotoba-build test
# デフォルトビルドを実行
kotoba-build
# クリーン実行
kotoba-build --clean
プロジェクトルートに kotoba-build.toml ファイルを作成して、タスクを定義します。
# Kotoba Build Configuration
name = "my-project"
version = "0.1.0"
description = "My awesome project"
[tasks.dev]
command = "cargo"
args = ["run"]
description = "Start development server"
depends_on = []
cwd = "."
env = {}
[tasks.build]
command = "cargo"
args = ["build", "--release"]
description = "Build project in release mode"
depends_on = []
cwd = "."
env = {}
[tasks.test]
command = "cargo"
args = ["test"]
description = "Run tests"
depends_on = []
cwd = "."
env = {}
[tasks.clean]
command = "cargo"
args = ["clean"]
description = "Clean build artifacts"
depends_on = []
cwd = "."
env = {}
[dependencies]
tokio = "1.0"
serde = "1.0"
各タスクは以下のフィールドをサポートします:
command: 実行するコマンドargs: コマンドの引数(配列)description: タスクの説明depends_on: 依存するタスク(配列)cwd: 作業ディレクトリenv: 環境変数(ハッシュマップ)# ファイル変更を監視して自動再ビルド
kotoba-build --watch
# 詳細なログを表示
kotoba-build --verbose dev
# 特定の設定ファイルを使用
kotoba-build --config custom.toml dev
kotoba-build.toml (推奨)kotoba-build.jsonkotoba-build.yamlビルドツールは以下の設定ファイルを自動的に検出します:
package.json (Node.jsプロジェクト)Cargo.toml (Rustプロジェクト)requirements.txt (Pythonプロジェクト)go.mod (Goプロジェクト)[tasks.dev]
command = "cargo"
args = ["run"]
description = "Start development server"
[tasks.build]
command = "cargo"
args = ["build", "--release"]
description = "Build project in release mode"
[tasks.test]
command = "cargo"
args = ["test"]
description = "Run tests"
[tasks.dev]
command = "npm"
args = ["run", "dev"]
description = "Start development server"
[tasks.build]
command = "npm"
args = ["run", "build"]
description = "Build project"
[tasks.test]
command = "npm"
args = ["test"]
description = "Run tests"
Kotoba Build Toolは以下のコンポーネントで構成されています:
cargo build --release
cargo test
cargo doc --open
Kotobaプロジェクトへの貢献を歓迎します!以下の方法で貢献できます:
このプロジェクトはMITライセンスの下で公開されています。