Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

spryker-shop/styleguide

Repository files navigation

DEPRECATED!

Will be removed in 2024.

Spryker Shop Styleguide

This repository contains an alpha version of Spryker Shop Styleguide. The application is based on GatsbyJS.

Requirements

Use yarn instead of npm as recommended by GatsbyJS. Tested on node version 8.11 (see .nvmrc file in the repo).

Installation

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.

Configuration

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'
      }
    }

Develop the plugin

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

Navigate the styleguide

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.

About

This npm module will automatically generate and serve a living styleguide for Spryker Shop atomic frontend.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published