Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDASILVA committed Dec 1, 2018
2 parents b67369b + 252ba9f commit 18cf385
Show file tree
Hide file tree
Showing 8 changed files with 2,822 additions and 2,298 deletions.
60 changes: 60 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10

working_directory: ~/mjml2html

environment:
PORT: 3001

steps:
- checkout

- run:
name: Install dependencies
command: npm ci

- run:
name: Running API server
command: npm start
background: true

- run:
name: Wait for the API server
command: |
dockerize -wait tcp://127.0.0.1:3001 -timeout 1m
curl http://0.0.0.0:3001
- run:
name: Run tests
command: npm test

misc:
docker:
- image: circleci/node:10

working_directory: ~/mjml2html

steps:
- checkout

- run:
name: Install dependencies
command: npm ci

- run:
name: Audit for vulnerabilities
command: npm audit

- run:
name: Lint files
command: npm run lint

workflows:
version: 2
mjml2html:
jobs:
- misc
- build
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "standard",
"plugins": ["jest"],
"env": {
"jest/globals": true
}
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8.11.0
FROM node:10

WORKDIR /app

Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# MJML2HTML

Simple API to convert MJML content to HTML on the fly.
![CircleCI](https://img.shields.io/circleci/project/github/chronotruck/mjml2html/master.svg)
![Dependencies](https://img.shields.io/david/chronotruck/mjml2html.svg)
![Dev Dependencies](https://img.shields.io/david/dev/chronotruck/mjml2html.svg)
![Docker Pulls](https://img.shields.io/docker/pulls/chronotruck/mjml2html.svg)
[![License](https://img.shields.io/github/license/chronotruck/mjml2html.svg)](https://github.com/chronotruck/mjml2html/blob/master/LICENSE)

> Simple API to convert MJML content to HTML on the fly.
## Requirements

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ app.post('/', (req, res) => {
minify,
validationLevel
})

res
.type('html')
.status(200)
Expand Down
Loading

0 comments on commit 18cf385

Please sign in to comment.