Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardeschloss/nuxt-stories
Nuxt stories module -- Painless (and now insanely fast) storybooking for Nuxt
https://github.com/richardeschloss/nuxt-stories
easy fast nuxt painless stories storybook
Last synced: 3 months ago
JSON representation
Nuxt stories module -- Painless (and now insanely fast) storybooking for Nuxt
- Host: GitHub
- URL: https://github.com/richardeschloss/nuxt-stories
- Owner: richardeschloss
- License: mit
- Created: 2019-10-29T19:26:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T13:47:49.000Z (about 1 year ago)
- Last Synced: 2024-10-16T22:22:18.734Z (3 months ago)
- Topics: easy, fast, nuxt, painless, stories, storybook
- Language: JavaScript
- Homepage: https://nuxt-stories.netlify.app
- Size: 48.5 MB
- Stars: 91
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/nuxt-stories)](https://www.npmjs.com/package/nuxt-stories)
[![npm](https://img.shields.io/npm/dt/nuxt-stories)](https://www.npmjs.com/package/nuxt-stories)
[![](https://gitlab.com/richardeschloss/nuxt-stories/badges/master/pipeline.svg)](https://gitlab.com/richardeschloss/nuxt-stories)
[![](https://gitlab.com/richardeschloss/nuxt-stories/badges/master/coverage.svg)](https://gitlab.com/richardeschloss/nuxt-stories)
[![NPM](https://img.shields.io/npm/l/nuxt-stories)](https://github.com/richardeschloss/nuxt-stories/blob/development/LICENSE)[📖 **Release Notes**](https://github.com/richardeschloss/nuxt-stories/blob/master/CHANGELOG.md)
# nuxt-stories
> Painless (and now insanely fast) storybooking for Nuxt
## Video overview
## Features
* ✅ Insanely fast configuration and usage (one install, one line in config, and you're good to go!)
* ✅ Live markdown editing and previewing directly on the UI! Faster than Hot Module Reloading!
* ✅ Stories that get written on the UI get auto saved back to the filesystem (local dev only)
* ✅ Easily toggle the view mode in the stories header.
* ✅ Instant compiling of vue components as you type them on the UI!
* ✅ Ordering of stories using story frontMatter.
* ✅ Instant updating of table of contents as you type the headers
* ✅ Auto importing of components. Just place components in your components directory and just use them!
* ✅ Emoji support! Don't believe it? Just look at this bulleted list!
* ✅ Built-in json viewer. Just type `` to see the tree.
* ✅ The perfect development tool for rapidly jotting down notes, gameplans, or even writing official documentation! Documentation that is also *functional*.
* ✅ Built-in fetch. Quickly fetch on the client or server side, right in your story! (v2.0.13+)
* ✅ Component-browser and style-editor with direct tie-in to Google fonts.## Demo
See it in ACTION: [DEMO @ Netlify](https://nuxt-stories.netlify.com) (Ctrl+Click for new tab)## Setup
1. Add `nuxt-stories` dependency to your project
* Nuxt 3.x
```bash
npm i -D nuxt-stories@next
```* Nuxt 2.x
```bash
npm i -D nuxt-stories
```You may also need to install the following deps if they didn't get installed when you first created your nuxt app:
After installing, a postinstall script will run to "gently copy" sample stories, assets, and layout(s) to your workspace to get you setup asap. It will also create a "components" directory if it doesn't already exist.
2. Add `nuxt-stories` to the `buildModules` section of `nuxt.config.js`
```js
{
buildModules: [
'nuxt-stories'
],
stories: {
/* stories options here */
}
}
```3. There is no step 3! You're good to go! Try it out!
```bash
npm run dev
```> Then view your stories running on your local dev server: http://localhost:3000/stories
All the stories that you edit there will get auto saved back to [project root]/stories/[language]. Read on to learn more. More explanation will follow.