Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/itemconsulting/preset-enonic-xp
- Owner: ItemConsulting
- License: mit
- Created: 2024-01-02T12:10:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T10:31:47.000Z (4 months ago)
- Last Synced: 2024-09-17T13:13:54.500Z (4 months ago)
- Language: TypeScript
- Size: 126 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```