Neighbourhood Party Manager
    Have ideas to improve npm?Join in the discussion! »

    @chec/gatsby-source-chec

    1.2.0 • Public • Published

    @chec/gatsby-source-chec

    🛍 Gatsby plugin for sourcing products, categories and merchant info from your Chec store

    Install

    yarn add @chec/gatsby-source-chec # npm install @chec/gatsby-source-chec 

    Config

    // In your gatsby-config.js
    plugins: [
      {
        resolve: `@chec/gatsby-source-chec`,
        options: {
          publicKey: '...',
          downloadImageAssets: true, // false by default
        },
      },
    ];

    Usage

    {
      checMerchant {
        id
        business_name
      }
     
      allChecCategory {
        nodes {
          name
          slug
          description
          created
          id
        }
      }
     
      allChecProduct {
        nodes {
          id
          name
          price {
            formatted_with_symbol
          }
        }
      }
    }

    Downloading image assets

    This plugin provides you the option to download product asset images, and cache them in your Gatsby project. This works great with gatsby-image.

    Add downloadImageAssets: true to your plugin options.

    These assets will be added as images to the ChecProduct nodes.

    Install

    npm i @chec/gatsby-source-chec

    DownloadsWeekly Downloads

    6

    Version

    1.2.0

    License

    BSD-3-Clause

    Unpacked Size

    6.08 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar