Skip to content

Commit d709f5b

Browse files
chore: Update discovery.config.js and package.json for compatibility and improvements (#178)
- Changed contentSource type in discovery.config.js to use double quotes. - Updated nodeVersion in experimental settings from 18 to 24. - Bumped @faststore/cli to version 4.1.0 and added graphql as a new dependency in package.json. - Updated TypeScript version from 5.3.2 to 5.9.3. - Refactored SCSS to utilize the new utilities namespace for better organization and maintainability.
1 parent 8f8aa00 commit d709f5b

4 files changed

Lines changed: 4634 additions & 1278 deletions

File tree

‎discovery.config.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
contentSource: {
3-
type: 'CMS',
3+
type: "CMS",
44
},
55
seo: {
66
title: "FastStore",
@@ -90,7 +90,7 @@ module.exports = {
9090
},
9191

9292
experimental: {
93-
nodeVersion: 18,
93+
nodeVersion: 24,
9494
cypressVersion: 12,
9595
enableFaststoreMyAccount: false,
9696
},

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"test": "faststore test"
1212
},
1313
"dependencies": {
14-
"@faststore/cli": "3.98.4",
15-
"next": "^13.5.9",
14+
"@faststore/cli": "^4.1.0",
15+
"graphql": "^16.11.0",
1616
"react": "^18.2.0",
1717
"react-dom": "^18.2.0"
1818
},
@@ -23,7 +23,7 @@
2323
"cypress": "12.17.4",
2424
"cypress-axe": "^1.5.0",
2525
"cypress-wait-until": "^2.0.1",
26-
"typescript": "5.3.2"
26+
"typescript": "^5.9.3"
2727
},
2828
"volta": {
2929
"node": "18.19.0",

‎src/themes/custom-theme.scss‎

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@use "@faststore/ui/src/styles/base/utilities" as u;
2+
3+
/* Usage with namespace */
4+
15
// ----------------------------------------------------------
26
// GLOBAL TOKENS
37
// Custom Theme
@@ -41,7 +45,7 @@
4145

4246
// PADDING
4347

44-
@include media(">=notebook") {
48+
@include u.media(">=notebook") {
4549
--fs-grid-padding : var(--fs-spacing-6);
4650
}
4751

@@ -107,7 +111,7 @@
107111
--fs-input-field-button-height : 56px;
108112

109113
[data-fs-button] { min-width: var(--fs-input-field-button-height); }
110-
input:not(:placeholder-shown) + label, &:focus + label { top: rem(9px); }
114+
input:not(:placeholder-shown) + label, &:focus + label { top: u.rem(9px); }
111115
}
112116

113117
[data-fs-quantity-selector] {
@@ -140,7 +144,7 @@
140144
padding: 0 var(--fs-grid-padding);
141145
}
142146

143-
@include media(">=notebook") {
147+
@include u.media(">=notebook") {
144148
--fs-incentives-gap : var(--fs-spacing-6);
145149
}
146150
}
@@ -176,10 +180,10 @@
176180
////////////////////
177181

178182
[data-fs-hero] {
179-
@include layout-content;
183+
@include u.layout-content;
180184

181185
&[data-fs-hero-variant="primary"] [data-fs-hero-heading] {
182-
@include media(">=notebook") {
186+
@include u.media(">=notebook") {
183187
padding: var(--fs-spacing-13) var(--fs-spacing-5);
184188
}
185189
}
@@ -194,7 +198,7 @@
194198
}
195199

196200
[data-fs-tile] > * {
197-
@include media(">=notebook") {
201+
@include u.media(">=notebook") {
198202
grid-auto-rows: 640px auto;
199203
}
200204
}
@@ -250,7 +254,7 @@
250254
[data-fs-image-gallery] > [data-fs-image] {
251255
object-fit: cover;
252256

253-
@include media("<notebook") {
257+
@include u.media("<notebook") {
254258
height: 280px;
255259
}
256260
}
@@ -305,7 +309,7 @@
305309
[data-fs-product-listing-content-grid] {
306310
column-gap: var(--fs-spacing-6);
307311

308-
@include media(">=notebook") { row-gap: var(--fs-spacing-3); }
312+
@include u.media(">=notebook") { row-gap: var(--fs-spacing-3); }
309313
}
310314

311315
[data-fs-filter] {
@@ -338,7 +342,7 @@
338342
--fs-cart-sidebar-footer-box-shadow : none;
339343
--fs-slide-over-partial-max-width-notebook : 480px;
340344

341-
@include media(">=notebook") {
345+
@include u.media(">=notebook") {
342346
--fs-cart-sidebar-list-padding : var(--fs-spacing-3) var(--fs-spacing-7);
343347
--fs-slide-over-header-padding : var(--fs-spacing-2) var(--fs-spacing-7);
344348
}
@@ -353,7 +357,7 @@
353357
}
354358

355359
[data-fs-cart-sidebar-footer] {
356-
@include media(">=notebook") {
360+
@include u.media(">=notebook") {
357361
padding: 0 var(--fs-spacing-7) var(--fs-spacing-4);
358362
}
359363

0 commit comments

Comments
 (0)