@mekuru/core 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 +18 -0
  2. package/README.md +18 -0
  3. package/package.json +1 -1
package/README.jp.md ADDED
@@ -0,0 +1,18 @@
1
+ # @mekuru/core
2
+
3
+ [English](README.md)
4
+
5
+ Mekuru Movie Maker の台本を TSX で書き、XML に書き出すパッケージです。組み込み要素の型と、Hono の JSX ランタイムの再エクスポートを提供します。
6
+
7
+ Bun 1.4 以上が必要です。
8
+
9
+ ```sh
10
+ bun add -d @mekuru/core
11
+ ```
12
+
13
+ - `tsconfig.json` の `jsx` を `react-jsx`、`jsxImportSource` を `@mekuru/core` に設定します。
14
+ - `writeXml(path, video)` で部品を展開して XML を書き出し、`toXml(video)` で XML 文字列を取得できます。
15
+ - 非同期の読み上げ部品は、先に下書きを書き出し、音声合成が終わると更新できます。
16
+ - XML のプレビューと動画への書き出しには [@mekuru/cli](../cli/README.jp.md) を使います。
17
+
18
+ [TSX の書き方](../../docs/reference/Component.jp.md) と [組み込みの要素](../../docs/reference/Syntax.jp.md)
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @mekuru/core
2
+
3
+ [日本語](README.jp.md)
4
+
5
+ TSX authoring and XML output for Mekuru Movie Maker. Provides types for built-in elements and re-exports Hono's JSX runtime.
6
+
7
+ Requires Bun 1.4 or later.
8
+
9
+ ```sh
10
+ bun add -d @mekuru/core
11
+ ```
12
+
13
+ - Set `jsx` to `react-jsx` and `jsxImportSource` to `@mekuru/core` in `tsconfig.json`.
14
+ - Use `writeXml(path, video)` to expand components and write XML, or `toXml(video)` to get an XML string.
15
+ - Async speech components can write an initial draft and update it after synthesis finishes.
16
+ - Use [@mekuru/cli](../cli/README.md) to preview the XML or render a video.
17
+
18
+ See [TSX authoring](../../docs/reference/Component.md) and [built-in elements](../../docs/reference/Syntax.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mekuru/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The types of the XML of Mekuru Movie Maker, for writing videos in TSX with jsxImportSource @mekuru/core (the JSX runtime is Hono's); the viewer and the compiler are in @mekuru/cli",
5
5
  "type": "module",
6
6
  "exports": {