Skip to content

Commit 6b99725

Browse files
committed
Rename call_from_js example to web
1 parent 5bbba4f commit 6b99725

17 files changed

+4190
-12
lines changed

graphql_client/examples/call_from_js/.gitignore

-4
This file was deleted.

graphql_client/examples/call_from_js/index.js

-5
This file was deleted.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
web.d.ts
2+
web.js
3+
web_bg.wasm
4+
package-lock.json

graphql_client/examples/call_from_js/Cargo.toml renamed to graphql_client/examples/web/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "call_from_js"
2+
name = "web"
33
version = "0.1.0"
44
authors = ["Tom Houlé <[email protected]>"]
55
edition = "2018"

graphql_client/examples/call_from_js/build.sh renamed to graphql_client/examples/web/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export CARGO_INCREMENTAL=0
55
cargo +nightly build --target wasm32-unknown-unknown --release
66

77
wasm-bindgen \
8-
./target/wasm32-unknown-unknown/release/call_from_js.wasm --out-dir .
8+
./target/wasm32-unknown-unknown/release/web.wasm --out-dir .
99

1010
npm install
1111
npm run serve

0 commit comments

Comments
 (0)