Skip to content

Commit

Permalink
Merge pull request #1329 from demergent-labs/js_only_example
Browse files Browse the repository at this point in the history
Added JS-only example
  • Loading branch information
lastmjs authored Oct 3, 2023
2 parents 11beb1c + fff7824 commit 21fa879
Show file tree
Hide file tree
Showing 11 changed files with 1,262 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ jobs:
"examples/stable_structures",
"examples/timers",
"examples/tuple_types",
"examples/update"
"examples/update",
"examples/vanilla_js"
]
END
)
Expand Down
4 changes: 4 additions & 0 deletions examples/vanilla_js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.azle
.dfx
dfx_generated
node_modules
16 changes: 16 additions & 0 deletions examples/vanilla_js/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"canisters": {
"vanilla_js": {
"type": "custom",
"main": "src/index.js",
"build": "npx azle vanilla_js",
"candid": "src/index.did",
"wasm": ".azle/vanilla_js/vanilla_js.wasm",
"gzip": true,
"declarations": {
"output": "test/dfx_generated/vanilla_js",
"node_compatibility": true
}
}
}
}
Loading

0 comments on commit 21fa879

Please sign in to comment.