1.2.0 ā¢ Published 5 years ago
postally v1.2.0
šØ Postally
AiO email creator assitant
Prerequisites
Your project need NodeJS 8+.
Postally are using the following libraries to offer an full email development environment :
- š¾ Twig.js as the main template engine
- š Inky as the Email template engine
- āļø Foundation for Emails as HTML/CSS framework
To help your Email creation process, you can take a look at :
- Twig documentation
- Foundation for Emails documentation
- Inky templates examples
- Available Sass variables
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