Add GSP project manifest and design layout

This commit is contained in:
2026-05-06 19:06:32 +08:00
parent 69003c8152
commit 67a1bf2600
19 changed files with 288 additions and 31 deletions

View File

@@ -0,0 +1,28 @@
# Lottery GSP Example
这是一个 GSP 示例工程。
## 结构
```text
lottery/
gsp.manifest
design/
*.gsp
```
## 入口
```text
page.lottery.main
```
## 生成
从仓库根目录执行:
```powershell
.\bin\gsp.exe validate --root examples\lottery
.\bin\gsp.exe flatten page.lottery.main --root examples\lottery --depth -1
.\bin\gsp.exe graph page.lottery.main --root examples\lottery --format mermaid
```

View File

@@ -0,0 +1,39 @@
gspVersion: 0.1
toolkitVersion: 0.1
project: lottery-example
entry:
- page.lottery.main
scan:
- design
stageRules:
design:
minResolution: L0
integrate:
minResolution: L2
implement:
minResolution: L3
bind:
minResolution: L4
release:
minResolution: L5
types:
- note
- concept
- style
- system
- feature
- mechanic
- flow
- page
- ui
- interaction
- feedback
- motion
- visual
- audio
- haptic
- binding