mirror of
https://github.com/encounter/jco.git
synced 2026-03-30 11:18:26 -07:00
c8c04b4727
* 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>
18 lines
897 B
JSON
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"
|
|
}
|
|
}
|