Skip to content
Draft
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ as-tral
.npm-cache/
.codex
# Include essential as-test artifacts
.wago/
16 changes: 16 additions & 0 deletions as-test.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,22 @@
}
}
},
"wago": {
"default": false,
"input": [
"assembly/__tests__/**/*.spec.ts",
"!**/__tmp_*",
"!**/unmock.spec.ts"
],
"buildOptions": {
"target": "wasi"
},
"runOptions": {
"runtime": {
"cmd": "wago run --no-reg-abi <file>"
}
}
},
"firefox": {
"default": false,
"buildOptions": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"build:transform": "rm -rf ./transform/lib && tsc -p ./transform && prettier -w ./transform/",
"test": "node ./bin/index.js test --parallel",
"test:integration": "node --test tests/*.test.mjs",
"test:modes": "npm run test -- --mode node:bindings,node:bindings:raw,node:bindings:esm,node:wasi,wasmtime,wasmer,wazero,firefox,chromium,webkit,firefox:headless,chromium:headless,webkit:headless",
"test:modes": "npm run test -- --mode node:bindings,node:bindings:raw,node:bindings:esm,node:wasi,wasmtime,wasmer,wazero,wago,firefox,chromium,webkit,firefox:headless,chromium:headless,webkit:headless",
"test:examples": "npm --prefix ./examples run test",
"test:all": "npm run build && npm run test:modes && npm run test:integration && npm run test:examples",
"test:ci": "npm run test -- --mode node:bindings,node:wasi,wasmtime",
Expand Down
8 changes: 8 additions & 0 deletions wago-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": {
"wago-org/wasi": {
"requiredCapabilities": ["host.environment", "host.imports"],
"grantedCapabilities": ["host.environment", "host.imports"]
}
}
}
10 changes: 10 additions & 0 deletions wago.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://wago.sh/schema.json",
"dependencies": ["github.com/wago-org/wasi"],
"plugins": {
"wago-org/wasi": {
"capabilities": ["host.environment", "host.imports"]
}
},
"schema": "wago/v1"
}
Loading