Skip to content

SWRdata/components

Repository files navigation

SWRdata/components

Component library for SWR Data Lab interactives.

Package version Deploy Storybook Run Storybook Tests Release to NPM

Usage

Run npm install --save @swr-data-lab/components to install the package

See also this sample repository. Refer to Storybook for component-level usage examples and documentation.

Contributing

Project structure

  1. /components: Central repository for reusable components, utility scripts, and other reusable assets. We use Storybook for previewing and component-level testing.
  2. /mock-sveltekit: Sample SvelteKit application used to test our components and develop the configuration needed to build our applications for SWR.de, the SWR Aktuell native app and wherever else they need to go.
  3. /mock-sophora: Testing environment designed to mimic the SWR.de environment, featuring defunkt/jquery-pjax navigation, global styles and server-side includes.
  4. /sophora-components: Experimental components that are intended to be used directly within SWR.de articles and pages via the "Datenjournalismus" module in the Sophora CMS.

Release workflow