DEPRECATED!
Will be removed in 2024.
This repository contains an alpha version of Spryker Shop Styleguide. The application is based on GatsbyJS.
Use yarn
instead of npm
as recommended by GatsbyJS.
Tested on node
version 8.11 (see .nvmrc
file in the repo).
To easily test/develop the application, download the repo and run yarn install
from the root.
Then move to ./plugins/gatsby-source-spryker-shop
and run again yarn install
to setup our custom Spryker source plugin.
Take a look at the following steps for the usage.
Go to ./gatsby-config.js
:
{
resolve: 'gatsby-source-spryker-shop',
options: {
projectRootAbsolutePath: '/absolute/path/to/suite/project', // change this property
componentPageTemplateRelativePath: 'src/templates/component.js'
}
}
Go to ./plugins/gatsby-source-spryker-shop
:
yarn run build # will transpile the code once
yarn run watch # will transpile the code for every change
Go to ./
:
yarn run develop
Follow the instrucion printed in the terminal to see the frontend and use GraphiQL. For more info about gatsby CLI, rely on the official documentation here.