Skip to content

Commit f2aab27

Browse files
committed
refactor: replace Leptos UI with Svelte and Rust WASM
1 parent b183c6e commit f2aab27

39 files changed

Lines changed: 2564 additions & 2083 deletions

‎.github/workflows/deploy.yml‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- name: Check native Rust
4444
run: cargo clippy --workspace --all-targets --locked -- -D warnings
4545

46-
- name: Check Leptos WASM code
47-
run: cargo clippy --target wasm32-unknown-unknown --bin config-generator --locked -- -D warnings
46+
- name: Check WASM bridge
47+
run: cargo clippy --target wasm32-unknown-unknown --lib --locked -- -D warnings
4848

4949
- name: Test XML DSL and configuration generation
5050
run: cargo test --workspace --locked
@@ -72,27 +72,29 @@ jobs:
7272

7373
- uses: Swatinem/rust-cache@v2
7474
with:
75-
key: trunk-0.21.14
76-
77-
- name: Install Trunk
78-
run: cargo install trunk --version 0.21.14 --locked
75+
key: svelte-wasm
7976

8077
- uses: astral-sh/setup-uv@v5
8178
with:
8279
enable-cache: true
8380

81+
- uses: actions/setup-node@v4
82+
with:
83+
node-version: '24'
84+
cache: npm
85+
cache-dependency-path: |
86+
config-generator/package-lock.json
87+
tests/config-generator/package-lock.json
88+
89+
- name: Install frontend dependencies
90+
run: npm ci --prefix config-generator
91+
8492
- name: Build documentation and standalone generator
8593
run: |
8694
uv sync --locked
8795
uv run --locked python scripts/build-site.py
8896
uv run --locked python tests/config-generator/check-site.py
8997
90-
- uses: actions/setup-node@v4
91-
with:
92-
node-version: '24'
93-
cache: npm
94-
cache-dependency-path: tests/config-generator/package-lock.json
95-
9698
- name: Install browser test dependencies
9799
run: npm ci --prefix tests/config-generator
98100

@@ -116,7 +118,7 @@ jobs:
116118
CONFIG_SCHEMA: schema/example.xml
117119
BROWSER_CHANNEL: chromium
118120
run: |
119-
trunk --config config-generator/Trunk.toml build --release --dist "$PWD/.cache/generic-site"
121+
npm run build --prefix config-generator -- --outDir "$PWD/.cache/generic-site"
120122
uv run --locked python tests/config-generator/run-browser.py --directory .cache/generic-site --script tests/config-generator/browser-generic.mjs
121123
122124
- name: Assemble Pages artifact

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ site/
44
/target/
55
/config-generator/dist/
66
/config-generator/.tools/
7+
/config-generator/pkg/
78
node_modules/

0 commit comments

Comments
 (0)