Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DONT MERGE] Feat/add plugins feature #616

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions discovery.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
titleTemplate: "%s | FastStore",
author: "FastStore",
},
plugins: ["@vtex/plugin-test"],
theme: "custom-theme",
platform: "vtex",
api: {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +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"
"react-dom": "^18.2.0",
"@vtex/plugin-test": "1.0.0"
},
"devDependencies": {
"@cypress/code-coverage": "^3.12.1",
Expand All @@ -30,4 +31,4 @@
"yarn": "1.19.1"
},
"author": "VTEX"
}
}
5 changes: 5 additions & 0 deletions src/components/ProductDetails/ProductDetails.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const ProductDetails = () => (
<h1 style={{ color: "red", fontSize: 40 }}>Product details no starter!!</h1>
);

export default ProductDetails;
7 changes: 7 additions & 0 deletions src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import ProductDetails from "./ProductDetails/ProductDetails";

Check warning on line 1 in src/components/index.tsx

View check run for this annotation

VTEX Sites / SonarQube

src/components/index.tsx#L1

Remove this unused import of 'ProductDetails'.

const sections = {
// ProductDetails,
};

export default sections;
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
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"module": "node16",
"moduleResolution": "node16",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
71 changes: 36 additions & 35 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,29 +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/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 @@ -2679,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