1.2.0 ā€¢ Published 5 years ago

postally v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

šŸ“Ø Postally

AiO email creator assitant

Prerequisites

Your project need NodeJS 8+.

Postally are using the following libraries to offer an full email development environment :

To help your Email creation process, you can take a look at :

Installation

First, install postally globally

$ npm install -g postally
# or
$ yarn global add postally

Usage

Init your project

To create a new postally project, you can choose to create a new directory (f.ex. new_project) or bootstrap the project inside the current one.

$ postally init new_project
$ cd new_project
# or
$ postally init

This will produce the following file structure inside your project directory :

.
ā”œā”€ā”€ build            šŸ‘ˆ your project's build (to use with MailChimp or CM)
ā”œā”€ā”€ data.json        šŸ‘ˆ the json data to inject in the markup
ā”œā”€ā”€ images           šŸ‘ˆ your image folder
ā”œā”€ā”€ index.html       šŸ‘ˆ the inky/twig newsletter template
ā”œā”€ā”€ node_modules     šŸ‘ˆ your only dependency
ā”‚    ā””ā”€ā”€ foundation-emails
ā”œā”€ā”€ package-lock.json
ā”œā”€ā”€ package.json     šŸ‘ˆ npm settings
ā”œā”€ā”€ styles.scss      šŸ‘ˆ your custom styles
ā””ā”€ā”€ variables.scss   šŸ‘ˆ your custom and overrided Foundation for Emails variables

Start the development environment

In your project directory, you can use the following command to start a web server into your default browser. It will automaticaly reload the rendered page and remake the build each time you will save your working files.

$ postally start

Create a once build

Almost the same as the start command, it only creates a once build.

$ postally build