Skip to content

Commit e4e5612

Browse files
authored
Merge pull request #207 from nuxt-modules/feat/store-template
feat(template): update store template
2 parents f0036a9 + 9307e2e commit e4e5612

65 files changed

Lines changed: 1369 additions & 1130 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
NUXT_SHOPIFY_NAME="YOUR_SHOP_NAME"
33

44
# Storefront API
5-
NUXT_SHOPIFY_CLIENTS_STOREFRONT_API_VERSION="2025-07"
5+
NUXT_SHOPIFY_CLIENTS_STOREFRONT_API_VERSION="2026-01"
66
NUXT_SHOPIFY_CLIENTS_STOREFRONT_PUBLIC_ACCESS_TOKEN="YOUR_PUBLIC_ACCESS_TOKEN"
77
NUXT_SHOPIFY_CLIENTS_STOREFRONT_PRIVATE_ACCESS_TOKEN="YOUR_PRIVATE_ACCESS_TOKEN"
88

99
# Admin API
10-
NUXT_SHOPIFY_CLIENTS_ADMIN_API_VERSION="2025-07"
10+
NUXT_SHOPIFY_CLIENTS_ADMIN_API_VERSION="2026-01"
1111
NUXT_SHOPIFY_CLIENTS_ADMIN_ACCESS_TOKEN="YOUR_ADMIN_ACCESS_TOKEN"
1212

1313
# Webhooks

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ export default defineNuxtConfig({
8080
name: 'quickstart-abcd1234',
8181
clients: {
8282
storefront: {
83-
apiVersion: '2025-07',
83+
apiVersion: '2026-01',
8484
publicAccessToken: 'YOUR_ACCESS_TOKEN',
8585
},
8686

8787
admin: {
88-
apiVersion: '2025-07',
88+
apiVersion: '2026-01',
8989
accessToken: 'YOUR_ACCESS_TOKEN',
9090
},
9191
},
@@ -258,7 +258,7 @@ export default defineNuxtConfig({
258258
storefront: {
259259
mock: true,
260260

261-
apiVersion: '2025-07',
261+
apiVersion: '2026-01',
262262
},
263263
},
264264
},
@@ -466,13 +466,13 @@ Published under the [MIT License](https://github.com/nuxt-modules/shopify/tree/m
466466
[github-actions-href]: https://github.com/nuxt-modules/shopify/actions
467467

468468
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/shopify/latest.svg?style=flat&colorA=18181B&colorB=31C553
469-
[npm-version-href]: https://npmjs.com/package/@nuxtjs/shopify
469+
[npm-version-href]: https://npmx.dev/package/@nuxtjs/shopify
470470

471471
[nuxt-health-src]: https://img.shields.io/endpoint?url=https://nuxt.care/api/v1/badge?module=shopify
472472
[nuxt-health-href]: https://nuxt.care/?search=shopify
473473

474474
[npm-last-update-src]: https://img.shields.io/npm/last-update/%40nuxtjs%2Fshopify.svg?style=flat&colorA=18181B&colorB=31C553
475-
[npm-last-update-href]: https://npmjs.com/package/@nuxtjs/shopify
475+
[npm-last-update-href]: https://npmx.dev/package/@nuxtjs/shopify
476476

477477
[license-src]: https://img.shields.io/github/license/nuxt-modules/shopify.svg?style=flat&colorA=18181B&colorB=31C553
478478
[license-href]: https://github.com/nuxt-modules/shopify/tree/main/LICENSE

bun.lock

Lines changed: 163 additions & 152 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/1.getting-started/2.installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ You can start building without a store using [mock.shop](https://mock.shop) but
7474

7575
clients: {
7676
storefront: {
77-
apiVersion: '2025-07',
77+
apiVersion: '2026-01',
7878
publicAccessToken: 'YOUR_ACCESS_TOKEN',
7979
},
8080
},
@@ -91,7 +91,7 @@ You can start building without a store using [mock.shop](https://mock.shop) but
9191

9292
clients: {
9393
storefront: {
94-
apiVersion: '2025-07',
94+
apiVersion: '2026-01',
9595
privateAccessToken: 'YOUR_PRIVATE_ACCESS_TOKEN',
9696
},
9797
},
@@ -108,7 +108,7 @@ You can start building without a store using [mock.shop](https://mock.shop) but
108108

109109
clients: {
110110
storefront: {
111-
apiVersion: '2025-07',
111+
apiVersion: '2026-01',
112112
mock: true,
113113
},
114114
},
@@ -125,7 +125,7 @@ You can start building without a store using [mock.shop](https://mock.shop) but
125125

126126
clients: {
127127
admin: {
128-
apiVersion: '2025-07',
128+
apiVersion: '2026-01',
129129
accessToken: 'YOUR_ACCESS_TOKEN',
130130
},
131131
},

docs/content/1.getting-started/4.usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineNuxtConfig({
3333

3434
clients: {
3535
storefront: {
36-
apiVersion: '2025-07',
36+
apiVersion: '2026-01',
3737
publicAccessToken: 'YOUR_ACCESS_TOKEN',
3838
},
3939
},
@@ -155,7 +155,7 @@ export default defineNuxtConfig({
155155

156156
clients: {
157157
admin: {
158-
apiVersion: '2025-07',
158+
apiVersion: '2026-01',
159159
accessToken: 'YOUR_ACCESS_TOKEN',
160160
},
161161
},
@@ -318,11 +318,11 @@ export default defineNuxtConfig({
318318

319319
clients: {
320320
storefront: {
321-
apiVersion: '2025-07',
321+
apiVersion: '2026-01',
322322
publicAccessToken: 'YOUR_ACCESS_TOKEN',
323323
},
324324
admin: {
325-
apiVersion: '2025-07',
325+
apiVersion: '2026-01',
326326
accessToken: 'YOUR_ACCESS_TOKEN',
327327
},
328328
},

docs/content/2.essentials/2.configuration.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export default defineNuxtConfig({
2222
name: 'quickstart-abcd1234',
2323
clients: {
2424
storefront: {
25-
apiVersion: '2025-07',
25+
apiVersion: '2026-01',
2626
publicAccessToken: 'YOUR_ACCESS_TOKEN',
2727
},
2828
admin: {
29-
apiVersion: '2025-07',
29+
apiVersion: '2026-01',
3030
accessToken: 'YOUR_ACCESS_TOKEN',
3131
},
3232
},
@@ -50,7 +50,7 @@ Choose the configuration that matches your use case:
5050
name: 'quickstart-abcd1234',
5151
clients: {
5252
storefront: {
53-
apiVersion: '2025-07',
53+
apiVersion: '2026-01',
5454
publicAccessToken: 'YOUR_ACCESS_TOKEN',
5555
},
5656
},
@@ -66,7 +66,7 @@ Choose the configuration that matches your use case:
6666
name: 'quickstart-abcd1234',
6767
clients: {
6868
storefront: {
69-
apiVersion: '2025-07',
69+
apiVersion: '2026-01',
7070
privateAccessToken: 'YOUR_ACCESS_TOKEN',
7171
},
7272
},
@@ -82,7 +82,7 @@ Choose the configuration that matches your use case:
8282
name: 'my-mocked-shopify-store',
8383
clients: {
8484
storefront: {
85-
apiVersion: '2025-07',
85+
apiVersion: '2026-01',
8686
mock: true,
8787
},
8888
},
@@ -98,7 +98,7 @@ Choose the configuration that matches your use case:
9898
name: 'quickstart-abcd1234',
9999
clients: {
100100
admin: {
101-
apiVersion: '2025-07',
101+
apiVersion: '2026-01',
102102
accessToken: 'YOUR_ACCESS_TOKEN',
103103
},
104104
},
@@ -130,7 +130,7 @@ Configure one or both API clients:
130130

131131
::field-group
132132
:::field{name="apiVersion" type="string" required}
133-
Shopify [API version](https://shopify.dev/docs/api/usage/versioning) to use (e.g., `2025-07`)
133+
Shopify [API version](https://shopify.dev/docs/api/usage/versioning) to use (e.g., `2026-01`)
134134
:::
135135

136136
:::field{name="publicAccessToken" type="string"}
@@ -198,7 +198,7 @@ Configure one or both API clients:
198198

199199
::field-group
200200
:::field{name="apiVersion" type="string" required}
201-
Shopify [API version](https://shopify.dev/docs/api/usage/versioning) to use (e.g., `2025-07`)
201+
Shopify [API version](https://shopify.dev/docs/api/usage/versioning) to use (e.g., `2026-01`)
202202
:::
203203

204204
:::field{name="accessToken" type="string" required}
@@ -280,7 +280,7 @@ export default defineNuxtConfig({
280280

281281
clients: {
282282
storefront: {
283-
apiVersion: '2025-07',
283+
apiVersion: '2026-01',
284284
publicAccessToken: 'YOUR_PUBLIC_ACCESS_TOKEN',
285285
privateAccessToken: 'YOUR_PRIVATE_ACCESS_TOKEN',
286286
mock: false,
@@ -311,7 +311,7 @@ export default defineNuxtConfig({
311311
},
312312

313313
admin: {
314-
apiVersion: '2025-07',
314+
apiVersion: '2026-01',
315315
accessToken: 'YOUR_ADMIN_ACCESS_TOKEN',
316316
sandbox: true,
317317
autoImport: false,

docs/content/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ProductImage.vue
9090
clients: {
9191
storefront: {
9292
publicAccessToken: 'public-access-token',
93-
apiVersion: '2025-07',
93+
apiVersion: '2026-01',
9494
},
9595
},
9696
},
@@ -188,7 +188,7 @@ Markets.vue
188188
clients: {
189189
admin: {
190190
accessToken: 'access-token',
191-
apiVersion: '2025-07',
191+
apiVersion: '2026-01',
192192
},
193193
},
194194
},

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ export default createConfigForNuxt({
1515
}).override('nuxt/vue/rules', {
1616
rules: {
1717
'vue/multi-word-component-names': 'off',
18+
'vue/no-v-html': 'off',
1819
},
1920
})

knip.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,14 @@
4646
"app/**/*.{ts,vue,css}",
4747
"graphql/**/*.ts",
4848
"shared/**/*.ts",
49-
"i18n/locales/**",
50-
"content/**",
51-
"content.config.ts"
49+
"i18n/locales/**"
5250
],
5351
"project": [
5452
"**/*.{ts,vue,css,md,json}"
5553
],
5654
"ignoreDependencies": [
5755
"@nuxtjs/shopify",
56+
"@tailwindcss/typography",
5857
"vue-tsc"
5958
]
6059
},

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@
8080
"qa:all": "bun --env-file=.env run lint && bun --env-file=.env run typecheck:all && bun --env-file=.env run test"
8181
},
8282
"dependencies": {
83-
"@graphql-codegen/cli": "^6.1.2",
83+
"@graphql-codegen/cli": "^6.1.3",
8484
"@graphql-codegen/import-types-preset": "^3.0.1",
85-
"@graphql-codegen/introspection": "^5.0.0",
86-
"@graphql-codegen/plugin-helpers": "^6.1.0",
87-
"@graphql-codegen/typescript": "^5.0.8",
85+
"@graphql-codegen/introspection": "^5.0.1",
86+
"@graphql-codegen/plugin-helpers": "^6.1.1",
87+
"@graphql-codegen/typescript": "^5.0.9",
8888
"@nuxt/kit": "^4.3.1",
8989
"@shopify/api-codegen-preset": "^1.2.2",
9090
"@shopify/graphql-client": "^1.4.1",
@@ -110,11 +110,11 @@
110110
"@nuxt/module-builder": "^1.0.2",
111111
"@nuxt/schema": "^4.3.1",
112112
"@nuxt/test-utils": "^4.0.0",
113-
"@types/bun": "^1.3.9",
114-
"@types/node": "^25.3.3",
113+
"@types/bun": "^1.3.10",
114+
"@types/node": "^25.3.5",
115115
"@vitest/coverage-v8": "^4.0.18",
116-
"eslint": "^10.0.2",
117-
"happy-dom": "^20.7.0",
116+
"eslint": "^10.0.3",
117+
"happy-dom": "^20.8.3",
118118
"knip": "^5.85.0",
119119
"nuxt": "^4.3.1",
120120
"typescript": "^5.9.3",

0 commit comments

Comments
 (0)