Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itemconsulting/preset-enonic-xp

Storybook preset for integrating with Enonic XP
https://github.com/itemconsulting/preset-enonic-xp

Last synced: about 2 months ago
JSON representation

Storybook preset for integrating with Enonic XP

Awesome Lists containing this project

README

        

# Enonic XP preset for Storybook

Storybook preset for integrating with Enonic XP

[![npm version](https://badge.fury.io/js/@itemconsulting%2Fpreset-enonic-xp.svg)](https://badge.fury.io/js/@itemconsulting%2Fpreset-enonic-xp)

## Usage

Install the package in your project.

```bash
npm i --save @itemconsulting/preset-enonic-xp
```
Add the preset to your *main.ts* (or *main.js*) file.

```typescript
import type { StorybookConfig } from "@storybook/server-webpack5";

const config: StorybookConfig = {
addons: [
'@itemconsulting/preset-enonic-xp'
],
};

export default config;
```

## Running tests

Unit tests can be run with the following command

```bash
npm run build && node --test
```