@macaw-email/preview-ui

1.6.0 • Public • Published

Preview UI for Macaw

The preview UI for Macaw helps view the compiled mjml file, markdown and JSON data. It is built with react, and fetches the updated templates using socket.io from the macaw cli.

Macaw UI Preivew

[Disclamer] This package is intended to be consumed internally by the macaw cli

Development setup

These instructions will get you a copy of the Preview UI running ready for development. All commands assume starting at the repositories root folder

First in the cli folder install the dependencies

cd packages/cli  && yarn install

Second run the macaw cli pointing it towards the template directory

yarn start preview --source templates

Then in a new terminal promt install the dependencies for the preview UI

cd packages/preview-ui && yarn install

Finally start the UI in development mode

yarn start

The development server will start on port 3000. The preview-ui automatically connects to the socket.io server started by the cli.

Readme

Keywords

none

Package Sidebar

Install

npm i @macaw-email/preview-ui

Homepage

macaw.email

Weekly Downloads

8

Version

1.6.0

License

MIT

Unpacked Size

2.34 MB

Total Files

19

Last publish

Collaborators

  • tschoffelen