Skip to content

Commit 2db467a

Browse files
authored
Merge pull request #592 from Shopify/fix-wasm-templates
Fix wasm templates
2 parents d5e002e + 436cae1 commit 2db467a

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "{{name}}",
3+
"description": "{{name}}"
4+
}
Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
name = "{{name}}"
2-
type = "local_pickup_delivery_option_generator"
3-
{% if uid %}uid = "{{ uid }}"{% endif %}
41
api_version = "unstable"
52

6-
[build]
7-
command = "echo 'build the wasm'"
3+
[[extensions]]
4+
name = "t:name"
5+
handle = "{{handle}}"
6+
type = "function"
7+
{% if uid %}uid = "{{ uid }}"{% endif %}
8+
9+
[[extensions.targeting]]
10+
target = "purchase.local-pickup-delivery-option-generator.run"
11+
input_query = "src/run.graphql"
12+
export = "run"
13+
14+
[extensions.build]
15+
command = "echo 'build the wasm'"
16+
path = ""
17+
watch = []
818

9-
[ui.paths]
10-
create = "/"
11-
details = "/"
19+
[extensions.ui.paths]
20+
create = "/"
21+
details = "/"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "{{name}}",
3+
"description": "{{name}}"
4+
}

order-routing/wasm/pickup-point-delivery-option-generators/default/shopify.extension.toml.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
api_version = "unstable"
22

33
[[extensions]]
4-
name = "{{name}}"
4+
name = "t:name"
55
handle = "{{handle}}"
66
type = "function"
77
{% if uid %}uid = "{{ uid }}"{% endif %}

0 commit comments

Comments
 (0)