Skip to content

chore: update to new WIT files handling #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/coverage

# Build artifacts
*.wasm
.edgee/
*.wasm
3 changes: 2 additions & 1 deletion edgee-component.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ subcategory = "analytics"
description = "Example Javascript component for data collection"
documentation = "https://github.com/edgee-cloud/example-js-component"
repository = "https://github.com/edgee-cloud/example-js-component"
wit-world-version = "0.5.0"
language = "JavaScript"
wit-version = "0.5.0"

[component.build]
command = "npm install && npm run generate && npm run build"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "src/index.js",
"types": "./types/wit.d.ts",
"scripts": {
"generate": "npx @bytecodealliance/jco types wit/ -o types/",
"build": "npx @bytecodealliance/jco componentize src/index.js --wit wit -o example-js-component.wasm -n data-collection -d all",
"generate": "npx @bytecodealliance/jco types .edgee/wit -o types/",
"build": "npx @bytecodealliance/jco componentize src/index.js --wit .edgee/wit -o example-js-component.wasm -n data-collection -d all",
"test": "mocha",
"coverage": "c8 --src js --all -r text -r text-summary npm test"
},
Expand Down
4 changes: 0 additions & 4 deletions wit/deps.lock

This file was deleted.

1 change: 0 additions & 1 deletion wit/deps.toml

This file was deleted.

13 changes: 0 additions & 13 deletions wit/deps/edgee/consent-mapping.wit

This file was deleted.

114 changes: 0 additions & 114 deletions wit/deps/edgee/data-collection.wit

This file was deleted.

5 changes: 0 additions & 5 deletions wit/world.wit

This file was deleted.

Loading