Add GSP project manifest and design layout
This commit is contained in:
28
examples/lottery/README.md
Normal file
28
examples/lottery/README.md
Normal 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
|
||||
```
|
||||
39
examples/lottery/gsp.manifest
Normal file
39
examples/lottery/gsp.manifest
Normal 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
|
||||
Reference in New Issue
Block a user