Coder Social home page Coder Social logo

matimendez88 / email-test-tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dudesl/email-test-tool

0.0 1.0 0.0 288 KB

A tool for testing mailing mockup build whit node, grunt, sass and using browserSync, mailgun, litmus

License: GNU General Public License v2.0

JavaScript 49.20% CSS 3.99% HTML 46.81%

email-test-tool's Introduction

Yet Another Email Test Tool

Overview

A tool for testing mailing mockup build whit node, grunt, sass and using browserSync, mailgun, litmus

Setup & Run

Install

$ npm install

This will install all the dependencies. At this point, the suite is ready for test and/or develop.

Dependencies

This is the actual devDependencies package.json field

"devDependencies": {
  "grunt": "~0.4.5",
  "grunt-contrib-watch": "^0.6.1",
  "grunt-contrib-sass": "^0.8.1",
  "grunt-browser-sync": "^1.5.3",
  "grunt-inline-css": "^0.1.4",
  "grunt-mailgun": "~0.0.3"
}

Run

In the root directory of our project:

command grunt

Will execute the watch task for index.html

command grunt sync

Will execute a set of task in this order:

  • browserSync for the inlined directory, for all the html files.
  • inlinecss will put all the styles in inline mode, for index.html and will output the inlined file in the inlined directory.
  • watch will watch changes in the *.html files in the root and the *.sass files in sass directory.

command grunt mailgun

Will execute the mailgun task whit the config object, declared at the start of Gruntfile.js. The config object has 4 properties:

  • key: A mailgun api key
  • sender: The 'from' name and adress.
  • recipient: One or more email addresses to send your messages to. Multiple addresses should be entered as an array.
  • subject: The subject of your email.
  • body (optional): If the src field is empty, mailgun-task will deliver a plain-text message whit the body content.

This task will be useful whit Litmus for test emails in multiple email clients. Litmus Litmus a fake email address for testing purpose. If we send the email whit mailgun to that fake email address, will be testing our html markup.

command grunt sass

Will execute the sass compiler for all the files *.sass in the css directory.

URL to run the project

When you run grunt sync command, the task browserSync will deploy a local server in port 3000.

The url is http://localhost:3000 and the file deployed is inlined/index.html.

Contributors

If you have any doubt about this project, here is a list of people who are or were working on it.

email-test-tool's People

Contributors

dudesl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.