Skip to content

Commit 4e84845

Browse files
chore(lang/js): make jco tutorial easier to run
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent e6f7f51 commit 4e84845

5 files changed

Lines changed: 2063 additions & 71 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
# Build artifacts from examples
77
**/jco/bindings
88
**/examples/**/*.wasm
9+
/component-model/examples/tutorial/jco/node_modules/

component-model/examples/tutorial/calculator/src/bindings.rs

Lines changed: 56 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// See the README for details on *generation* of the required import
2-
import { calculate } from "./bindings/composed.js";
2+
import { calculate } from "./bindings/calculator.composed.js";
33

44
console.log("Answer (to life) = " + calculate.evalExpression("add", 21, 21));

0 commit comments

Comments
 (0)