# lemonpi-cli

This project serves as a collection of cli tools that make it easier to create
templatesets for LemonPI.

## Installation

```
yarn add -D @lemonpi/templateset-cli
```

## templateset-preview

Because of their dynamic nature, templatesets can not be previewed locally. This
tool takes a templateset as it would be uploaded to LemonPI, and transforms it
into a working preview.

It actively watches a source directory. When changes occur the preview is
recreated and reloaded in the browser.

### Usage

```
yarn templateset-preview
```

Or with extra logging:

```
templateset-preview -v
```

The preview will now be available on
[http://localhost:3000](http://localhost:3000).

### Options

* `--help` or `-h` for usage information
* `--watch` or `-w` to configure the source directory (defaults to
  `./template-set`)
* `--out` or `-o` to configure the output directory (defaults to `./preview`)
* `--verbose` or `-v` for extra logging
