pixifact 0.2.0 → 0.2.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.
- package/README.md +13 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
# Pixifact
|
|
2
2
|
|
|
3
|
-
Pixifact
|
|
3
|
+
Pixifact 是基于 PixiJS v8 的 Scene / UI / 轻场景语义层,面向 AI 可直接编辑的 `.scene` 工作流。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`pixifact` 包提供项目配置解析、runtime 节点、compiler API 和生成 Scene 的运行时支持。CLI 和项目脚手架分别由 `pixifact-cli`、`create-pixifact` 提供。
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## 安装
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
bun add pixifact pixi.js
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## 使用
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
import { parseSceneTemplate } from 'pixifact/compiler';
|
|
17
17
|
import { Group } from 'pixifact/runtime';
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Compiler Scene
|
|
20
|
+
Compiler Scene 项目通常还会安装 CLI:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
bun add -d pixifact-cli
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
然后校验和编译 `.scene` 文件:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
pixifact scene validate --
|
|
30
|
-
pixifact compile-scenes
|
|
29
|
+
pixifact scene validate --all
|
|
30
|
+
pixifact compile-scenes
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
## Scene
|
|
33
|
+
## Scene 工作流
|
|
34
34
|
|
|
35
|
-
Pixifact
|
|
35
|
+
Pixifact 把项目相对 `.scene` 文件作为 source of truth。外部 Agent 直接编辑 `.scene` 源文件,然后运行校验和编译。
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
`.pixifact/generated/**` 等生成文件是构建产物,不要手写修改。
|
|
38
38
|
|
|
39
|
-
##
|
|
39
|
+
## 环境要求
|
|
40
40
|
|
|
41
41
|
- Bun
|
|
42
42
|
- PixiJS v8
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
桌面编辑器不包含在 npm runtime 包中。
|