Skip to content

Commit 6539b18

Browse files
authored
Merge pull request #431 from Shopify/mathiuss/add-discounts-allocator
feat: add discounts allocator function template (Rust, JS/TS, WASM)
2 parents 2017f3e + bfffda5 commit 6539b18

23 files changed

+13502
-657
lines changed

Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
generated
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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "{{handle}}",
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+
"test": "vitest"
11+
},
12+
"codegen": {
13+
"schema": "schema.graphql",
14+
"documents": "src/*.graphql",
15+
"generates": {
16+
"./generated/api.ts": {
17+
"plugins": [
18+
"typescript",
19+
"typescript-operations"
20+
]
21+
}
22+
},
23+
"config": {
24+
"omitOperationSuffix": true
25+
}
26+
},
27+
"devDependencies": {
28+
"vitest": "^0.29.8"
29+
},
30+
"dependencies": {
31+
"@shopify/shopify_function": "0.1.0",
32+
"decimal.js": "^10.4.3",
33+
"javy": "0.1.1"
34+
}
35+
}

0 commit comments

Comments
 (0)