# webpack-components-presenter

> Starts webpack-dev-server that finds and serves components demos

Latest version **0.0.4** (published 2016-08-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install webpack-components-presenter
pnpm add webpack-components-presenter
yarn add webpack-components-presenter
bun add webpack-components-presenter
```

Provides the command `components-presenter`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2016-08-14 |
| First published | 2016-07-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andy Kogut |
| Maintainers | andykog |

## Links

- npm: https://www.npmjs.com/package/webpack-components-presenter
- Repository: https://github.com/andykog/webpack-components-presenter/
- npm.io page: https://npm.io/package/webpack-components-presenter

## Recent versions

- 0.0.4 (latest) — 2016-08-14
- 0.0.2 — 2016-08-01
- 0.0.1 — 2016-07-26
- 0.0.0 — 2016-07-26

## README

webpack-components-presenter
----------------------------

CLI utility, that works just like `webpack-dev-server`. But it automatically
finds all the files inside you context folder, containing `__demo__` in their
names and serves list of them, so you can run demonstration of your ui
components. Each component should render itself in `#root`:

`npm install --save-dev webpack-components-presenter`

```js
/* NiceButton__demo__.jsx */
import React, { Component } from 'react';
import { render } from 'react-dom';
import NiceButton from './NiceButton';

export default class NiceButtonDemo extends Component {
  render() {
    return (
      <div>
        <NiceButton />
      </div>
    );
  }
}

if (target) render(<NiceButtonDemo />, document.querySelector('#root'));
```


Just run:

```
components-presenter
```

---
_Source: https://npm.io/package/webpack-components-presenter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
