@mekuru/cli 0.1.1 → 0.1.2

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.jp.md +29 -0
  2. package/README.md +29 -0
  3. package/package.json +6 -6
package/README.jp.md ADDED
@@ -0,0 +1,29 @@
1
+ # @mekuru/cli
2
+
3
+ [English](README.md)
4
+
5
+ プレビューと動画書き出しのコマンドです。Bun 1.4 以上・ffmpeg・ffprobe・台本の文字に対応したフォントが必要です。
6
+
7
+ ```sh
8
+ bun add -d @mekuru/cli
9
+ bunx mekuru-server .mekuru/main.xml --run 'bun --hot src/main.tsx'
10
+ bunx mekuru-compiler .mekuru/main.xml -o video.mp4
11
+ ```
12
+
13
+ - `mekuru-server <xml>`: XML を監視してブラウザのビューアを起動。
14
+ - `--run <cmd>`: XML を生成するコマンドを起動。
15
+ - `--port`, `--title`: ポート(既定: 3333)とブラウザのタイトル。
16
+ - `--no-open`, `--open`: ブラウザの自動起動。既定は開く。`MEKURU_OPEN=0` で抑止。
17
+ - `mekuru-compiler <xml>`: ネイティブコンパイラで動画を書き出す。
18
+ - `-o <file>`: 出力ファイル。
19
+ - `--preview`: 半分の解像度・15 fps。
20
+ - `--scale`, `--fps`: 解像度の倍率とフレームレート。
21
+ - `--from`, `--to`: 書き出す範囲(秒)。
22
+ - `--preset`, `--crf`: x264 のエンコード設定。
23
+ - `--no-audio`: 音声なしで書き出す。
24
+
25
+ 両コマンドの `--root <dir>` で素材の基準フォルダを指定できます。既定は XML のあるフォルダ(`.mekuru/` ならその親)です。
26
+
27
+ コンパイラは `MEKURU_COMPILER` → OS 別 npm パッケージ → 更新日時が新しい `target/debug`・`target/release` の順で探します(同時刻なら debug)。`@mekuru/cli/protocol` はサーバーとビューアの共有型です。
28
+
29
+ [TSX の作業手順](../../docs/reference/Component.jp.md)・[開発](../../docs/dev/Developer.jp.md)
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @mekuru/cli
2
+
3
+ [日本語](README.jp.md)
4
+
5
+ Preview and video export commands. Requires Bun 1.4+, ffmpeg, ffprobe, and fonts for the script.
6
+
7
+ ```sh
8
+ bun add -d @mekuru/cli
9
+ bunx mekuru-server .mekuru/main.xml --run 'bun --hot src/main.tsx'
10
+ bunx mekuru-compiler .mekuru/main.xml -o video.mp4
11
+ ```
12
+
13
+ - `mekuru-server <xml>`: Watch XML and open the browser viewer.
14
+ - `--run <cmd>`: Run the command that generates XML.
15
+ - `--port`, `--title`: Port (default: 3333) and browser title.
16
+ - `--no-open`, `--open`: Control browser launch. Default: open, unless `MEKURU_OPEN=0`.
17
+ - `mekuru-compiler <xml>`: Export video with the native compiler.
18
+ - `-o <file>`: Output file.
19
+ - `--preview`: Half resolution, 15 fps.
20
+ - `--scale`, `--fps`: Resolution multiplier and frame rate.
21
+ - `--from`, `--to`: Export range in seconds.
22
+ - `--preset`, `--crf`: x264 encoding settings.
23
+ - `--no-audio`: Export without audio.
24
+
25
+ Both commands accept `--root <dir>` for the media base directory. Default: the XML directory, or its parent when named `.mekuru/`.
26
+
27
+ Compiler lookup: `MEKURU_COMPILER` → platform npm package → newest local `target/debug` or `target/release` binary (debug wins ties). `@mekuru/cli/protocol` exports the server/viewer types.
28
+
29
+ [TSX workflow](../../docs/reference/Component.md) · [Development](../../docs/dev/Developer.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mekuru/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The commands of Mekuru Movie Maker: mekuru-server (the viewer in the browser, which can run the script with --run) and mekuru-compiler (XML → video, a prebuilt binary for each platform)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,10 +22,10 @@
22
22
  "./*": "./*"
23
23
  },
24
24
  "optionalDependencies": {
25
- "@mekuru/compiler-darwin-arm64": "0.1.1",
26
- "@mekuru/compiler-darwin-x64": "0.1.1",
27
- "@mekuru/compiler-linux-arm64": "0.1.1",
28
- "@mekuru/compiler-linux-x64": "0.1.1",
29
- "@mekuru/compiler-win32-x64": "0.1.1"
25
+ "@mekuru/compiler-darwin-arm64": "0.1.2",
26
+ "@mekuru/compiler-darwin-x64": "0.1.2",
27
+ "@mekuru/compiler-linux-arm64": "0.1.2",
28
+ "@mekuru/compiler-linux-x64": "0.1.2",
29
+ "@mekuru/compiler-win32-x64": "0.1.2"
30
30
  }
31
31
  }