@vuemaildev/ui
This package is used to store the preview server, it is also published and versioned so that it can be installed when the CLI is being used.
It has two parts: the preview app, a Vue application in src/client, and the server that renders the emails and serves the app, in src/node, which compiles the emails with Vite.
Development workflow
1. Start a preview server
Inside of the playground, once the packages are built with pnpm build at the root of the monorepo:
pnpm dev --port 3001
This starts the preview server for the emails of the playground on port 3001, which is where the preview app looks for it in development. The files in playground/emails can be modified as you see fit since, other than example.vue, they are not included in git.
2. Run development server
Inside of packages/ui:
pnpm dev
This runs the preview app with Vite, which hot reloads it as you change its code, while the emails still come from the preview server of the first step. It lets you work on the UI for the preview server mainly.
3. Open in your browser
Go to http://localhost:5173
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.0 | ^3.4.0 | MIT |