Patterns
========

A library for generating a style guide from templates. [View a demo](https://demo.mannequin.io), or [read the docs](https://mannequin.io).

Development
-----------

To work on this project, you need:

- PHP >= 7.0
- NodeJS >= 6.0

In development, there are two servers that need to be started to see your changes immediately:

From the /ui directory, run: `npm run start`
In .mannequin.php, use the LocalDevelopmentUI as follows:
```php
use LastCall\Mannequin\Core\MannequinConfig;
use LastCall\Mannequin\Core\Ui\LocalDevelopmentUi;

$config = MannequinConfig::create([
  // This will cause the PHP server to use the development UI
  // instead of the downloaded one:
  'ui' => new LocalDevelopmentUi('http://10.0.0.1:3000')
])
...
```
Finally, run: `src/Core/bin/mannequin server *:8000`.  Once these are up and running, you should be able to visit http://localhost:8000 in your browser, and see changes to both PHP and React code as you reload the page.

Deployment/Packaging
--------------------

This repository is split using [splitsh-lite](https://github.com/splitsh/lite) running inside of the [derusse/docker-gitsplit](https://github.com/jderusse/docker-gitsplit) Docker container.  Pushes to the master branch, as well as pushes of any tags, will be moved to the downstream repositories.
Patterns
========

A library for generating a style guide from templates. [View a demo](https://demo.mannequin.io), or [read the docs](https://mannequin.io).

Development
-----------

To work on this project, you need:

- PHP >= 7.0
- NodeJS >= 6.0

In development, there are two servers that need to be started to see your changes immediately:

From the /ui directory, run: `npm run start`
In .mannequin.php, use the LocalDevelopmentUI as follows:
```php
use LastCall\Mannequin\Core\MannequinConfig;
use LastCall\Mannequin\Core\Ui\LocalDevelopmentUi;

$config = MannequinConfig::create([
  'ui' => new LocalDevelopmentUi('http://127.0.0.1:3000')
])
...
```
Finally, run: `src/Core/bin/mannequin server *:8000`.  Once these are up and running, you should be able to visit http://localhost:8000 in your browser, and see changes to both PHP and React code as you reload the page.

Deployment/Packaging
--------------------

This repository is split using [splitsh-lite](https://github.com/splitsh/lite) running inside of the [derusse/docker-gitsplit](https://github.com/jderusse/docker-gitsplit) Docker container.  Pushes to the master branch, as well as pushes of any tags, will be moved to the downstream repositories.
Update IP in development documentation
Update IP in development documentation
