Skip to content

Commit

Permalink
Add template code for multi-class discounts
Browse files Browse the repository at this point in the history
  • Loading branch information
lindadamus committed Jan 17, 2025
1 parent 2ae226e commit c3da6f0
Show file tree
Hide file tree
Showing 23 changed files with 13,928 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discounts/javascript/discounts/default/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
generated
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "{{name}}",
"description": "{{name}}"
}
30 changes: 30 additions & 0 deletions discounts/javascript/discounts/default/package.json.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "{{handle}}",
"version": "0.0.1",
"license": "UNLICENSED",
"scripts": {
"shopify": "npm exec -- shopify",
"typegen": "npm exec -- shopify app function typegen",
"build": "npm exec -- shopify app function build",
"preview": "npm exec -- shopify app function run",
"test": "vitest"
},
"codegen": {
"schema": "schema.graphql",
"documents": "src/*.graphql",
"generates": {
"./generated/api.ts": {
"plugins": [
"typescript",
"typescript-operations"
]
}
},
"config": {
"omitOperationSuffix": true
}
},
"devDependencies": {
"vitest": "^0.29.8"
}
}
Loading

0 comments on commit c3da6f0

Please sign in to comment.