Files
Victor Adossi c8c04b4727 feat(examples): add HTTP hello world (#533)
* chore(examples): update jco/componentize-js versions

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>

* feat(examples): add HTTP hello world example

This commit adds an example that uses the WASI http world to build a
HTTP handler to the in-repo examples.

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>

* chore(examples): update http example wasi deps to 0.2.2

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>

* fix(examples): remove type generation

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>

* docs(examples): add warning about jco serve for local/dev use

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>

---------

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
2024-12-11 13:34:14 -08:00

18 lines
897 B
JSON

{
"name": "string-reverse-upper-wasm",
"description": "Simple codebase for reversing a string and upper-casing it via WebAssembly with jco",
"type": "module",
"scripts": {
"build": "jco componentize string-reverse-upper.js --wit wit/ --world-name revup --out string-reverse-upper.incomplete.wasm --disable all",
"build:dep": "cd ../string-reverse ; npm run build",
"compose": "npm run build:dep && wac plug --plug ../string-reverse/string-reverse.wasm string-reverse-upper.incomplete.wasm -o string-reverse-upper.wasm",
"transpile": "jco transpile string-reverse-upper.wasm -o dist/transpiled",
"transpiled-js": "node run-transpiled.js",
"all": "npm run build:dep ; npm run build ; npm run compose ; npm run transpile ; npm run transpiled-js"
},
"devDependencies": {
"@bytecodealliance/jco": "1.8.1",
"@bytecodealliance/componentize-js": "0.15.0"
}
}