New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@deptdk/liquidjs-framework-vite

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deptdk/liquidjs-framework-vite

Storybook for LiquidJS and Vite: View LiquidJS Components in isolation with Hot Reloading.

latest
Source
npmnpm
Version
0.2.5
Version published
Weekly downloads
201
-0.99%
Maintainers
1
Weekly downloads
 
Created
Source

Storybook for LiquidJS

Storybook for LiquidJS is a UI development environment for your LiquidJS Components. With it, you can visualize different states of your Components and develop them interactively.

Storybook Screenshot

Storybook runs outside of your app. So you can develop UI components in isolation without worrying about app specific dependencies and requirements.

Getting Started

cd my-app
npx storybook@latest init --type html

Remove HTML framework/renderer and install LiquidJS framework/renderer:

npm remove @storybook/html @storybook/html-webpack5
npm install @deptdk/liquidjs-framework-webpack5 --save-dev

…or if you wanna use Vite

npm remove @storybook/html @storybook/html-webpack5
npm install @deptdk/liquidjs-framework-vite --save-dev

Replace .storybook/main.js with the below, setting up the correct paths as necessary.

module.exports = {
  // ...
  stories: ['RELATIVE_PATH_TO_STORIES'],
  framework: '@deptdk/liquidjs-framework-webpack5', // or '@deptdk/liquidjs-framework-vite'
};

Replace .storybook/preview.js with:

export const parameters = { 
  liquidjs: {
    //These options are passed to LiquidJS
  },
};

Read more about LiquidJS options in the LiquidJS Docs

Storybook also comes with a lot of addons and a great API to customize as you wish. You can also build a static version of your Storybook and deploy it anywhere you want.

Keywords

storybook

FAQs

Package last updated on 05 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts