GithubHelp home page GithubHelp logo

isabella232 / vs-code-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from storybookjs/vs-code-plugin

0.0 0.0 0.0 5.1 MB

Aesop: a VSCode Extension to stage Storybook stories inside your IDE.

TypeScript 93.18% JavaScript 6.82%

vs-code-plugin's Introduction

AesopLogo_small

AESOP

Meet Aesop: the lightweight Storybook preview extension.

This humble helper displays your Storybook alongside a codebase for more responsive workflow. It integrates with existing Storybook addons and features, and it is optimized to use minimal system resources.

Screenshots

Aesop Awoken

Here we activate the "Aesop Awaken" command from the command palette to jumpstart the initialization process that checks whether your storybook is currently running. In this case, we have already run a Storybook server from the command line, so Aesop dynamically selects the port where the content is being served and displays it in a webview.

Features

If you are working in a project folder on a Storybook-enabled application, Aesop will run a Storybook process at startup and display the same suite you're used to right inside Visual Studio Code as an attached Node child process.

Or, if you're used to starting up your Storybook from the CLI with additional arguments, Aesop won't impede your workflow โ€” it understands Node processes, and will happily retrieve your running Storybook.

How To Use The Extension

Simply install the extension from the Visual Studio Code Marketplace and open a project folder with a Storybook dependency as your main workspace folder.

Then you can start previewing Storybook directly in your editor after following a few steps:

First, execute the 'Aesop Awaken' command from the command palette, or by using the shortcut keybinding.

From here, Aesop checks to see whether or not you currently have a Storybook process running.

If it does not find a Storybook process, it will spin up a new instance of Storybook using your npm script within your package.json, along with any arguments you've supplied.

If it does find a Storybook process, it dynamically captures the location in which the content is being served and displays it within a webview directly in your IDE.

Requirements

Aesop only depends on the ps-node library. This is used to simplify certain lookup functions while accessing running Node processes, but will likely be removed in a future version to make Aesop dependency-free.

If your system does not support Netstat, you may experience some issues using this beta release.

Extension Settings

Because Aesop is lightweight, it is also minimal config. It contributes one hotkey command chord to activate: CTRL / CMD K + A

The Aesop team aims to provide further customization options and improved UI integration within Visual Studio Code as development continues.

Release Notes

Please contact the developers at https://github.com/storybookjs/vs-code-plugin with comments, questions, and any features you would like to see in a future version of Aesop.

Known Issues

On Windows, you MUST have Storybook already running for Aesop to work. We are currently tackling this issue and expect it to be resolved soon.

0.1.0

Aesop is pleased to make your acquaintance.

If you are downloading the repository to play with Aesop's code, you may need to install dependencies for the sample React and Vue component files before use. Happy testing!

vs-code-plugin's People

Contributors

arlogui avatar dependabot[bot] avatar giacomo9999 avatar imgbotapp avatar keithrcagney avatar kennyjjma avatar ndelangen avatar olamiwhat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.