Skip to content

Commit 9e5296e

Browse files
committed
chore: update to new WIT files handling
1 parent 58e31b0 commit 9e5296e

File tree

8 files changed

+6
-140
lines changed

8 files changed

+6
-140
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# deps
2+
.edgee/
13
# build output
24
dc_component.wasm
35
# world binding

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edgee_world:
1212
# grab python reqs
1313
uv sync
1414
# generate bindings from wit
15-
uv run componentize-py --wit-path wit/ bindings edgee_world
15+
uv run componentize-py --wit-path .edgee/wit/ bindings edgee_world
1616

1717
setup: edgee_world ## setup development environment
1818

edgee-component.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ repository = "https://github.com/edgee-cloud/example-py-component"
1111
wit-world-version = "0.5.0"
1212

1313
[component.build]
14-
command = "uv run componentize-py --wit-path wit/ --world data-collection componentize dc_component -o dc_component.wasm"
14+
command = "uv sync && (test -d edgee_world || uv run componentize-py --wit-path .edgee/wit/ bindings edgee_world) && uv run componentize-py --wit-path .edgee/wit/ --world data-collection componentize dc_component -o dc_component.wasm"
1515
output_path = "./dc_component.wasm"
1616

1717
[component.settings.example]
1818
title = "Example Config Field"
19-
type = "string"
19+
type = "string"
20+

wit/deps.lock

-4
This file was deleted.

wit/deps.toml

-1
This file was deleted.

wit/deps/edgee/consent-mapping.wit

-13
This file was deleted.

wit/deps/edgee/data-collection.wit

-114
This file was deleted.

wit/world.wit

-5
This file was deleted.

0 commit comments

Comments
 (0)