New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

ribcage-preview

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ribcage-preview

Run a preview server for a ribcage component


Version published
Maintainers
5
Created

ribcage-preview

Run a preview server with live reloading for a ribcage component

Install

npm install -g ribcage-preview

Usage

ribcage-preview <dir>

<dir> should be the directory of the component you want to preview.

Create an example folder in your <dir> with an entry.js and an entry.css and optionally an entry.html.

.jsx files are also recognized. If the index file is .jsx, client-side JS will be off by default unless you pass a s or --client-jsx flag. The index.jsx file is always rendered by the server and the results appended to <div id=app>. Your example/entry.jsx should render into the same div.

open http://localhost:4001/default

This URL with livereload on every file change, and load in the compiled entry.js and entry.css.

Keywords

FAQs

Package last updated on 17 Apr 2015

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