@tbsten/mir 0.0.1-alpha01 → 0.0.1-alpha03

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +89 -0
  2. package/dist/cli.js +380 -6834
  3. package/package.json +13 -3
package/README.md ADDED
@@ -0,0 +1,89 @@
1
+ # @tbsten/mir
2
+
3
+ スニペット(ディレクトリ構造含む)を配布・取得する CLI ツール。Handlebars テンプレートで変数展開し、ファイル名・ファイル内容を動的に生成します。
4
+
5
+ ## インストール
6
+
7
+ ### グローバルインストール
8
+
9
+ ```bash
10
+ npm install -g @tbsten/mir
11
+ mir --version
12
+ ```
13
+
14
+ ### npx で実行
15
+
16
+ ```bash
17
+ npx @tbsten/mir --help
18
+ ```
19
+
20
+ ## クイックスタート
21
+
22
+ ```bash
23
+ # 初期化
24
+ mir init
25
+
26
+ # スニペット一覧表示
27
+ mir list
28
+
29
+ # スニペット情報表示
30
+ mir info hello-world
31
+
32
+ # インストール
33
+ mir install hello-world --name=MyProject
34
+
35
+ # スニペット作成
36
+ mir create my-snippet
37
+
38
+ # 公開
39
+ mir publish my-snippet
40
+ ```
41
+
42
+ ## コマンド一覧
43
+
44
+ | コマンド | 説明 |
45
+ |---------|------|
46
+ | `mir init` | `.mir/` ディレクトリ初期化 |
47
+ | `mir list` | ローカル・リモートスニペット一覧 |
48
+ | `mir info <name>` | スニペット詳細情報表示 |
49
+ | `mir install <name>` | スニペットをインストール |
50
+ | `mir create <name>` | スニペット雛形作成 |
51
+ | `mir publish <name>` | スニペット公開 |
52
+ | `mir sync <name>` | スニペット定義と同期 |
53
+
54
+ ## オプション
55
+
56
+ ```bash
57
+ mir install hello-world \
58
+ --name=MyProject \
59
+ --no-interactive \
60
+ --registry=http://localhost:3000 \
61
+ --output=./output \
62
+ --dry-run
63
+ ```
64
+
65
+ - `--name` - 変数の値を指定
66
+ - `--no-interactive` - 非対話モード
67
+ - `--registry` - カスタム registry URL
68
+ - `--output` - 出力ディレクトリ
69
+ - `--dry-run` - プレビューモード
70
+
71
+ ## 設定ファイル
72
+
73
+ `~/.mir/config.yaml`:
74
+
75
+ ```yaml
76
+ registry:
77
+ default: https://mir.tbsten.me
78
+ custom: http://localhost:3000
79
+
80
+ editor: vim
81
+ ```
82
+
83
+ ## ドキュメント
84
+
85
+ 詳細は [プロジェクトドキュメント](https://mir.tbsten.me/docs) を参照してください。
86
+
87
+ ## ライセンス
88
+
89
+ MIT