Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
/ sapper-sources Public archive

Helpers for supporting external sources in a sapper app

License

Notifications You must be signed in to change notification settings

apvarun/sapper-sources

Repository files navigation

Sapper Sources

Pre-built content sources for your Sapper Application

Provides ability to use gatsby-source plugins in Sapper

Table of Contents

Installation

Use the package manager npm or yarn to install Sapper Sources.

npm install sapper-sources

# or

yarn add sapper-sources

Usage

Example to setup markdown as source for your sapper application.

import sapperSource, { markdownSource } from 'sapper-sources';

export default {
  source: sapperSource({
    plugin: markdownSource,
    options: {
      contentPath: '/content/',
    },
  }),
};

Using gatsby source plugins in sapper:

import sapperSource, { gatsbyPlugin } from 'sapper-sources';

export default {
  source: sapperSource({
    plugin: gatsbyPlugin('gatsby-source-rss-feed'),
    options: {
      // Optional custom parameters to be accessible in your svelte files
    },
  }),
};

Built With

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Roadmap

  • Markdown Support
  • Gatsby Source Plugin Support
  • JSON Support
  • Relative image path support

License

MIT.

About

Helpers for supporting external sources in a sapper app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages