Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ node_modules
**/shopify.extension.toml
*/javascript/**/package.json
*/javascript/**/src/*
*/typescript/**/package.json
*/typescript/**/src/*
*/rust/**/src/*.graphql
*/wasm/**/*.graphql
!*/wasm/**/schema.graphql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ description = "t:description"
[extensions.build]
command = "cargo build --target=wasm32-wasip1 --release"
path = "target/wasm32-wasip1/release/{{handle | replace: " ", "-" | downcase}}.wasm"
watch = [ "src/**/*.rs" ]
watch = ["src/**/*.rs"]

Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"vitest": "^0.29.8"
},
"dependencies": {
"@shopify/shopify_function": "0.1.0",
"decimal.js": "^10.4.3",
"javy": "0.1.1"
"decimal.js": "^10.4.3"
}
}
7 changes: 0 additions & 7 deletions discounts/rust/discounts/default/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# This file is auto-generated from the current state of the GraphQL API. Instead of editing this file,
# please edit the ruby definition files and run `bin/rails graphql:schema:dump` to regenerate the schema.
#
# If you're just looking to browse, you may find it friendlier to use the graphiql browser which is
# available in services-internal at https://app.shopify.com/services/internal/shops/14168/graphql.
# Check out the "Docs" tab in the top right.

schema {
query: Input
mutation: MutationRoot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ description = "t:description"
export = "run"

[extensions.build]
command = ""
path = "dist/function.wasm"
command = "echo 'build the wasm'"
path = ""
watch = []

[extensions.ui.paths]
create = "/"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
query Input {
shop {
metafield(namespace: "$app:{{handle | replace: " ", "-" | downcase}}", key: "function-configuration") {
value
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dist
generated
node_modules

!/src/*.js
!/src/*.graphql
generated
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,5 @@
},
"devDependencies": {
"vitest": "^0.29.8"
},
"dependencies": {
"@shopify/shopify_function": "0.1.0",
"javy": "0.1.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
/target
Cargo.lock
.idea

!/src/*.graphql
Cargo.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dist
generated
node_modules
package.json
generated
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,5 @@
},
"devDependencies": {
"vitest": "^0.29.8"
},
"dependencies": {
"@shopify/shopify_function": "0.1.0",
"javy": "0.1.1"
}
}