Skip to content

Commit

Permalink
feat: add new plugin configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurTriis1 committed Nov 14, 2024
1 parent 02eb8d6 commit ac72410
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 124 deletions.
158 changes: 79 additions & 79 deletions discovery.config.js
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
module.exports = {
seo: {
title: "FastStore Starter",
description: "Fast Demo Store",
titleTemplate: "%s | FastStore",
author: "FastStore",
},
plugins: ["@faststore/plugin-test"],
theme: "custom-theme",
platform: "vtex",
api: {
storeId: "storeframework",
workspace: "master",
environment: "vtexcommercestable",
hideUnavailableItems: false,
incrementAddress: false,
},
session: {
currency: {
code: "USD",
symbol: "$",
},
locale: "en-US",
channel: '{"salesChannel":"1","regionId":""}',
country: "USA",
deliveryMode: null,
addressType: null,
postalCode: null,
geoCoordinates: null,
person: null,
},
cart: {
id: "",
items: [],
messages: [],
shouldSplitItem: true,
},
storeUrl: "https://vtexfaststore.com",
secureSubdomain: "https://secure.vtexfaststore.com",
checkoutUrl: "https://secure.vtexfaststore.com/checkout",
loginUrl: "https://secure.vtexfaststore.com/api/io/login",
accountUrl: "https://secure.vtexfaststore.com/api/io/account",
previewRedirects: {
home: "/",
plp: "/office",
search: "/s?q=headphone",
pdp: "/apple-magic-mouse/p",
},
lighthouse: {
server: "http://localhost:3000",
pages: {
home: "/",
pdp: "/4k-philips-monitor-99988213/p",
collection: "/office",
},
},
cypress: {
pages: {
home: "/",
pdp: "/4k-philips-monitor-99988213/p",
collection: "/office",
collection_2: "/technology",
collection_filtered:
"/office/?category-1=office&marca=acer&facets=category-1%2Cmarca",
search: "/s?q=orange",
},
},
analytics: {
gtmContainerId: "GTM-PGHZ95N",
},
experimental: {
nodeVersion: 18,
cypressVersion: 12,
},
account: "storeframework",
vtexHeadlessCms: {
webhookUrls: [
"https://storeframework.myvtex.com/cms-releases/webhook-releases",
],
},
seo: {
title: "FastStore Starter",
description: "Fast Demo Store",
titleTemplate: "%s | FastStore",
author: "FastStore",
},
plugins: ["@faststore/plugin-test"],
theme: "custom-theme",
platform: "vtex",
api: {
storeId: "storeframework",
workspace: "master",
environment: "vtexcommercestable",
hideUnavailableItems: false,
incrementAddress: false,
},
session: {
currency: {
code: "USD",
symbol: "$",
},
locale: "en-US",
channel: '{"salesChannel":"1","regionId":""}',
country: "USA",
deliveryMode: null,
addressType: null,
postalCode: null,
geoCoordinates: null,
person: null,
},
cart: {
id: "",
items: [],
messages: [],
shouldSplitItem: true,
},
storeUrl: "https://vtexfaststore.com",
secureSubdomain: "https://secure.vtexfaststore.com",
checkoutUrl: "https://secure.vtexfaststore.com/checkout",
loginUrl: "https://secure.vtexfaststore.com/api/io/login",
accountUrl: "https://secure.vtexfaststore.com/api/io/account",
previewRedirects: {
home: "/",
plp: "/office",
search: "/s?q=headphone",
pdp: "/apple-magic-mouse/p",
},
lighthouse: {
server: "http://localhost:3000",
pages: {
home: "/",
pdp: "/4k-philips-monitor-99988213/p",
collection: "/office",
},
},
cypress: {
pages: {
home: "/",
pdp: "/4k-philips-monitor-99988213/p",
collection: "/office",
collection_2: "/technology",
collection_filtered:
"/office/?category-1=office&marca=acer&facets=category-1%2Cmarca",
search: "/s?q=orange",
},
},
analytics: {
gtmContainerId: "GTM-PGHZ95N",
},
experimental: {
nodeVersion: 18,
cypressVersion: 12,
},
account: "storeframework",
vtexHeadlessCms: {
webhookUrls: [
"https://storeframework.myvtex.com/cms-releases/webhook-releases",
],
},
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"test": "faststore test"
},
"dependencies": {
"@faststore/cli": "^3.0.146",
"@faststore/cli": "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/cli",
"next": "^13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@faststore/plugin-test": "../poc-faststore-plugin"
"@vtex/plugin-test": "1.0.0"
},
"devDependencies": {
"@cypress/code-coverage": "^3.12.1",
Expand All @@ -31,4 +31,4 @@
"yarn": "1.19.1"
},
"author": "VTEX"
}
}
2 changes: 1 addition & 1 deletion src/themes/custom-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// --------------------------------------------------------
// Colors (Branding Core)
// --------------------------------------------------------
--fs-color-main-0: #f1f2f3;
// --fs-color-main-0: blue;
// --------------------------------------------------------
// Typography (Branding Core)
// --------------------------------------------------------
Expand Down
77 changes: 36 additions & 41 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1156,10 +1156,9 @@
dependencies:
fast-deep-equal "^3.1.3"

"@faststore/api@^3.0.140":
version "3.0.140"
resolved "https://registry.yarnpkg.com/@faststore/api/-/api-3.0.140.tgz#d2e32994983aa3d1a09a3a76a25e46147186edff"
integrity sha512-8PIbYhHuCGdu4039foA515KoQTcn1AGebrMJ/efKWYjx4EBoSt1dHAejfXHk6N7aBEsANNtZmRguaYSV2MjCYw==
"@faststore/api@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/api":
version "3.0.149"
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/api#bc40ecb70b5c49970ad2b20d642ed7ba218fd979"
dependencies:
"@envelop/on-resolve" "^4.1.1"
"@graphql-tools/load-files" "^7.0.0"
Expand All @@ -1176,13 +1175,12 @@
p-limit "^3.1.0"
sanitize-html "^2.11.0"

"@faststore/cli@^3.0.146":
version "3.0.146"
resolved "https://registry.yarnpkg.com/@faststore/cli/-/cli-3.0.146.tgz#43061f2ec9d721c7de3ed3bc49150c0573a74d2a"
integrity sha512-IjLA5TY2ADKefZHgWd2DdFRKDCtwl8rwaGrtBAVpQwe8nddxVCoBsry2gcLiC8Ff+5Etw+8dVgwx7YssR0wL9g==
"@faststore/cli@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/cli":
version "3.0.149"
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/cli#29cdb187a7ddfc1a22406b75abb4c6e64ed6bebb"
dependencies:
"@antfu/ni" "^0.21.12"
"@faststore/core" "^3.0.146"
"@faststore/core" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/core"
"@inquirer/prompts" "^5.1.2"
"@oclif/core" "^1.16.4"
"@oclif/plugin-help" "^5"
Expand All @@ -1195,28 +1193,27 @@
ora "5.4.1"
path "^0.12.7"

"@faststore/components@^3.0.144":
"@faststore/components@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/components":
version "3.0.144"
resolved "https://registry.yarnpkg.com/@faststore/components/-/components-3.0.144.tgz#8d34d1f9a864044db7d6f204f836ea054988965c"
integrity sha512-AaAo+Wqf8lwmuG3VW6CHWUBQD+BAq8XFobkiyuKDh4eOmQiJQW5qcBr4gwcfO+fZ+QkZCl/AkvRh9VAoG8nQfA==
uid "33fbe94f165b78123c8a5deb75ba6bf41bfd43e1"
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/components#33fbe94f165b78123c8a5deb75ba6bf41bfd43e1"

"@faststore/core@^3.0.146":
version "3.0.146"
resolved "https://registry.yarnpkg.com/@faststore/core/-/core-3.0.146.tgz#94270b3f7acd6f1ec096f5dd37b0168c0e0403a1"
integrity sha512-YSgtpm9ceZrUhQE6OnQn4rZRIa99a/j3GtHTz2vN7ZWOddMg58HRo00jDJ8tyxK7Khmyv1ZP+RVQe0/8Xqj35A==
"@faststore/core@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/core":
version "3.0.149"
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/core#b4d54ac844d0eb4e267bb534ea7d81e31414d6cb"
dependencies:
"@antfu/ni" "^0.21.12"
"@builder.io/partytown" "^0.6.1"
"@envelop/core" "^5.0.2"
"@envelop/graphql-jit" "^8.0.3"
"@envelop/parser-cache" "^6.0.2"
"@envelop/validation-cache" "^6.0.2"
"@faststore/api" "^3.0.140"
"@faststore/components" "^3.0.144"
"@faststore/graphql-utils" "^3.0.135"
"@faststore/lighthouse" "^3.0.135"
"@faststore/sdk" "^3.0.135"
"@faststore/ui" "^3.0.144"
"@faststore/api" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/api"
"@faststore/components" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/components"
"@faststore/graphql-utils" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/graphql-utils"
"@faststore/lighthouse" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/lighthouse"
"@faststore/sdk" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/sdk"
"@faststore/ui" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/ui"
"@graphql-codegen/cli" "5.0.2"
"@graphql-codegen/client-preset" "4.2.6"
"@graphql-codegen/typescript" "4.0.7"
Expand Down Expand Up @@ -1252,35 +1249,25 @@
tsx "^4.6.2"
typescript "4.7.3"

"@faststore/graphql-utils@^3.0.135":
"@faststore/graphql-utils@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/graphql-utils":
version "3.0.135"
resolved "https://registry.yarnpkg.com/@faststore/graphql-utils/-/graphql-utils-3.0.135.tgz#970dd7ae22efa9110ae991c3c32cb30ab51d4a73"
integrity sha512-T8/gJLyDLncvXudFqca+uSRLzxdk+rYpn3Q/CefgarU8W/pbOQhpt7WALT1q2I1ediEjfxh2BnqMQNKwcZA6ZQ==
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/graphql-utils#8d5913aa689ad25d69a4b4622f0a876ed8849c09"

"@faststore/lighthouse@^3.0.135":
"@faststore/lighthouse@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/lighthouse":
version "3.0.135"
resolved "https://registry.yarnpkg.com/@faststore/lighthouse/-/lighthouse-3.0.135.tgz#f5dae8f90f54e26cdc0cc586db5d70e7eb17ec8f"
integrity sha512-6bAsZoi4v1MaFPCP+5/u1wyEfuriT+KVhxwGBNAYDduVc/2w7QHMuLjF6JSnyZDFPgA7nAICV4HXlcHL4xx58g==
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/lighthouse#7175c2d1f5ac4caaade82e0de6c7bddda0f4afb3"

"@faststore/plugin-test@../poc-faststore-plugin":
version "1.0.0"
dependencies:
react "^18.2.0"
react-dom "^18.2.0"

"@faststore/sdk@^3.0.135":
"@faststore/sdk@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/sdk":
version "3.0.135"
resolved "https://registry.yarnpkg.com/@faststore/sdk/-/sdk-3.0.135.tgz#1755df9f347f0254723d73ec77c0fe5837004b44"
integrity sha512-Eq8EVitloNYMab40gPBEoI10E2jL4KH/J78MO0eq0TokZsNK80x1ShgeBilDa1wUtV4rKvj7p6mmAbNrGMgyAw==
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/sdk#3687a764c30f0b8186b9e5858bd8a1acbe25c67c"
dependencies:
idb-keyval "^5.1.3"

"@faststore/ui@^3.0.144":
"@faststore/ui@https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/ui":
version "3.0.144"
resolved "https://registry.yarnpkg.com/@faststore/ui/-/ui-3.0.144.tgz#9b764910fadb6997274115448a506e58ceac45d8"
integrity sha512-fwRaLby84AiSPC4axQ+4qyhHqrsZwB4aQV7FnM738CETYMQJKIezYQ2uqGC85ETY09/zIGUOhMia7ibQFs3ORQ==
resolved "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/ui#8b542de0a8d6b6e13ee97104a41d59b0a78d0bdb"
dependencies:
"@faststore/components" "^3.0.144"
"@faststore/components" "https://pkg.csb.dev/vtex/faststore/commit/61a18b34/@faststore/components"
include-media "^1.4.10"
modern-normalize "^1.1.0"
react-swipeable "^7.0.0"
Expand Down Expand Up @@ -2685,6 +2672,14 @@
fetch-retry "^4.1.1"
isomorphic-unfetch "^3.1.0"

"@vtex/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@vtex/plugin-test/-/plugin-test-1.0.0.tgz#36d7d32e506eb7a411477529bb0a48b9b3281754"
integrity sha512-hHJ2xVSVQ2WUz1alTj8o/RVOHN7NXvEE1ChJu7Hye4djJJIhwB9jWkWDyHfynDsjJ0XwDMd7cpDg+xLIGHdz2Q==
dependencies:
react "^18.2.0"
react-dom "^18.2.0"

"@vtex/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@vtex/prettier-config/-/prettier-config-1.0.0.tgz#a7a7091ecff1da340d398000f4855dc9910aa9c9"
Expand Down

0 comments on commit ac72410

Please sign in to comment.