Skip to content

Commit 67bbd22

Browse files
authored
Merge pull request #187 from Shopify/fulfillment_constraints_js_template
Add `fulfillment_constraints` JS template
2 parents 55e00d4 + c7f8f47 commit 67bbd22

File tree

6 files changed

+3244
-0
lines changed

6 files changed

+3244
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
generated
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
query Input {
2+
cart {
3+
deliverableLines {
4+
id
5+
}
6+
}
7+
fulfillmentConstraintRule {
8+
metafield(namespace: "$app:fulfillment-constraints", key: "function-configuration") {
9+
value
10+
}
11+
}
12+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "{{name}}",
3+
"version": "0.0.1",
4+
"license": "UNLICENSED",
5+
"scripts": {
6+
"shopify": "npm exec -- shopify",
7+
"typegen": "npm exec -- shopify app function typegen",
8+
"build": "npm exec -- shopify app function build",
9+
"preview": "npm exec -- shopify app function run"
10+
},
11+
"codegen": {
12+
"schema": "schema.graphql",
13+
"documents": "input.graphql",
14+
"generates": {
15+
"./generated/api.ts": {
16+
"plugins": [
17+
"typescript",
18+
"typescript-operations"
19+
]
20+
}
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)