Skip to content

Commit ade6840

Browse files
committed
feat: add wasm discounts function allocator template
1 parent 58c9019 commit ade6840

File tree

6 files changed

+4448
-0
lines changed

6 files changed

+4448
-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: 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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "discounts-discounts-allocator-default",
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+
"javy": "0.1.1"
33+
}
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
"javy": "0.1.1"
33+
}
34+
}

0 commit comments

Comments
 (0)